From 6bcca64380d97f614ad9774edfb6b922e1f2b696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Str=C3=B6mkvist?= Date: Tue, 25 Feb 2020 13:22:43 +0100 Subject: Use h-scrolling instead of wrap in code block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- css/prosemirror.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'css') 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; -- cgit v1.2.3