Skip to content

Commit 2a42b4c

Browse files
committed
Fix code-box overflow
1 parent 44b99aa commit 2a42b4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/css/default.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,19 +403,23 @@ CONTENT
403403
.code-box-content {
404404
word-break: break-all;
405405
font-size: 1em;
406+
font-family: monospace;
406407
line-height: 1.10;
407408
padding: 0.5em 1em;
408409
display: block;
409410
min-height: 1em;
410411
width: 100%;
411412
height: 100%;
412413
white-space: pre-wrap;
413-
font-family: monospace;
414414

415415
&::selection {
416416
color: black;
417417
background: $light-yellow;
418418
}
419+
420+
pre {
421+
white-space: pre-wrap;
422+
}
419423
}
420424

421425
.code-box-title {

0 commit comments

Comments
 (0)