Skip to content

Commit 0d695a2

Browse files
authored
docs: Resolve code snippet issues within a narrow window size (#2197)
1 parent 0dccd01 commit 0d695a2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,17 @@
184184
border-radius: 8px;
185185
}
186186

187+
/* Prevent grid layout from collapsing code lines on narrow viewports. */
188+
.md-typeset .md-code__content {
189+
display: block;
190+
white-space: pre;
191+
min-width: 0;
192+
}
193+
194+
.md-typeset pre > code {
195+
white-space: pre;
196+
}
197+
187198
.md-clipboard.md-icon {
188199
color: #9e9e9e;
189200
}

0 commit comments

Comments
 (0)