From cbe55055e9874fe4e2d9c52c03624d6e09776c97 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:53:35 -0800 Subject: [PATCH] Desktop: Fixes #11313: Don't completely left-align the editor with the toolbar (#11316) --- packages/editor/CodeMirror/theme.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/editor/CodeMirror/theme.ts b/packages/editor/CodeMirror/theme.ts index 031156e68f8..5f178bc9352 100644 --- a/packages/editor/CodeMirror/theme.ts +++ b/packages/editor/CodeMirror/theme.ts @@ -187,7 +187,8 @@ const createTheme = (theme: EditorTheme): Extension[] => { // Allows editor content to be left-aligned with the toolbar on desktop. // See https://github.com/laurent22/joplin/issues/11279 [`${editorNoGuttersSelector} .cm-line`]: theme.isDesktop ? { - paddingLeft: 0, + // Note: This cannot be zero: + paddingLeft: '1px', } : undefined, // Override the default URL style when the URL is within a link