diff options
author | Anton Strömkvist <anton@stromkvist.com> | 2020-02-25 15:22:43 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-02-25 19:02:08 +0300 |
commit | 6bcca64380d97f614ad9774edfb6b922e1f2b696 (patch) | |
tree | 1b4b5725a53a5bd2bea6a5f1e549625c054ae1c1 /css | |
parent | 62ae70155adf937780de462de1464ba4871e236c (diff) |
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>
Diffstat (limited to 'css')
-rw-r--r-- | css/prosemirror.scss | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/css/prosemirror.scss b/css/prosemirror.scss index a65718e77..3824765ec 100644 --- a/css/prosemirror.scss +++ b/css/prosemirror.scss @@ -171,7 +171,8 @@ div.ProseMirror { } pre { - white-space: pre-wrap; + white-space: pre; + overflow-x: auto; background-color: var(--color-background-dark); border-radius: var(--border-radius); padding: 1em 1.3em; |