Skip to content

Commit 4e8553c

Browse files
committed
Fix line gaps in ASCII diagrams
Set line-height to 1.0 for diagram code blocks to eliminate gaps between lines, ensuring proper vertical alignment of ASCII art characters. This affects: - Markdown diagram code blocks (language-diagram) - Homepage architecture diagram on mobile Regular code snippets retain line-height: 1.5 for better readability.
1 parent 4e8a8c9 commit 4e8553c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/css/custom.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ pre, pre code, .prism-code {
3030
line-height: 1.5 !important;
3131
}
3232

33-
/* ASCII diagrams: tighter line height */
33+
/* ASCII diagrams: no line gaps for proper character alignment */
3434
pre[class*="language-diagram"],
3535
pre[class*="language-diagram"] code {
36-
line-height: 1.2 !important;
36+
line-height: 1.0 !important;
3737
}
3838

3939
.docusaurus-highlight-code-line {

src/pages/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ html[data-theme="dark"] .signupSectionFullWidth {
194194
.architectureDiagram pre {
195195
font-size: 1rem;
196196
padding: 15px;
197-
line-height: 1.3;
197+
line-height: 1;
198198
}
199199

200200
.featuresGrid {

0 commit comments

Comments
 (0)