Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorAnton Strömkvist <anton@stromkvist.com>2020-02-25 15:22:43 +0300
committerJulius Härtl <jus@bitgrid.net>2020-02-25 19:02:08 +0300
commit6bcca64380d97f614ad9774edfb6b922e1f2b696 (patch)
tree1b4b5725a53a5bd2bea6a5f1e549625c054ae1c1 /css
parent62ae70155adf937780de462de1464ba4871e236c (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.scss3
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;