From 70b72c7f8bc5fe64c714d182f229d693fabf6721 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke <marijnh@gmail.com> Date: Thu, 25 Apr 2013 15:35:38 +0200 Subject: [PATCH] Disallow line wrapping in gutter container This prevents gutters from suddenly moving below each other as the editor is scroller horizontally. --- lib/codemirror.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/codemirror.css b/lib/codemirror.css index 0b5370450..71e0d0e52 100644 --- a/lib/codemirror.css +++ b/lib/codemirror.css @@ -28,6 +28,7 @@ .CodeMirror-gutters { border-right: 1px solid #ddd; background-color: #f7f7f7; + white-space: nowrap; } .CodeMirror-linenumbers {} .CodeMirror-linenumber { @@ -151,6 +152,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} z-index: 3; } .CodeMirror-gutter { + white-space: normal; height: 100%; padding-bottom: 30px; margin-bottom: -32px; -- GitLab