Skip to content

Commit f621d32

Browse files
committed
Fix line-wrap in pre tag
1 parent 0571c80 commit f621d32

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/styles/global.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,17 @@ section h2 {
457457
}
458458

459459
.description-section pre {
460+
font-family: inherit; /* do not use monospace */
460461
line-height: 1.8;
461462
color: var(--color-text-primary);
463+
464+
white-space: pre-wrap;
465+
word-wrap: break-word;
466+
overflow-wrap: break-word;
467+
overflow-x: auto;
468+
469+
/* not supported on mobile Safari until 26.0 */
462470
text-wrap: pretty;
463-
font-family: inherit;
464471
}
465472

466473
.permissions-grid {

0 commit comments

Comments
 (0)