Skip to content

Commit 2566d7d

Browse files
ahstrobackportbot[bot]
authored andcommitted
Use h-scrolling instead of wrap in code block
If a line in a code block exceeds the widdth, hide overflow and add horizontal scrollbars instead of wrapping the line. Signed-off-by: Anton Strömkvist <anton@stromkvist.com>
1 parent a706ef0 commit 2566d7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

css/prosemirror.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ div.ProseMirror {
171171
}
172172

173173
pre {
174-
white-space: pre-wrap;
174+
white-space: pre;
175+
overflow-x: auto;
175176
background-color: var(--color-background-dark);
176177
border-radius: var(--border-radius);
177178
padding: 1em 1.3em;

0 commit comments

Comments
 (0)