From 116413e78d7da174a372ca22e05bd408f610fe01 Mon Sep 17 00:00:00 2001 From: Caleb John Date: Thu, 19 Nov 2020 10:04:18 -0700 Subject: [PATCH] Desktop: Prevent lines from shifting in Markdown Editor when Scrollbar appears (#4110) --- .../gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx index 4cdf7f1bec..fb8acf1bde 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx +++ b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx @@ -409,6 +409,12 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) { padding-bottom: 400px !important; } + .CodeMirror-sizer { + /* Add a fixed right padding to account for the appearance (and disappearance) */ + /* of the sidebar */ + padding-right: 10px !important; + } + .cm-header-1 { font-size: 1.5em; }