From d35647d8432eb16d3e97401f719ba0ff4384ddf1 Mon Sep 17 00:00:00 2001 From: Henry Heino Date: Tue, 5 Nov 2024 08:17:17 -0800 Subject: [PATCH] Desktop: Fixes #11313: Don't left-align the editor with the toolbar --- packages/editor/CodeMirror/theme.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/editor/CodeMirror/theme.ts b/packages/editor/CodeMirror/theme.ts index 031156e68f8..87b87d83730 100644 --- a/packages/editor/CodeMirror/theme.ts +++ b/packages/editor/CodeMirror/theme.ts @@ -79,10 +79,6 @@ const createTheme = (theme: EditorTheme): Extension[] => { // be at least this specific. const selectionBackgroundSelector = '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground'; - // Matches the editor only when there are no gutters (e.g. line numbers) added by - // plugins - const editorNoGuttersSelector = '&:not(:has(> .cm-scroller > .cm-gutters))'; - const baseHeadingStyle = { fontWeight: 'bold', fontFamily: theme.fontFamily, @@ -184,12 +180,6 @@ const createTheme = (theme: EditorTheme): Extension[] => { marginRight: 'auto', } : undefined, - // 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, - } : undefined, - // Override the default URL style when the URL is within a link '& .tok-url.tok-link, & .tok-link.tok-meta, & .tok-link.tok-string': { opacity: 0.6,