Skip to content

Commit

Permalink
Desktop: Fixes #11313: Don't left-align the editor with the toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Nov 5, 2024
1 parent da10297 commit d35647d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/editor/CodeMirror/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d35647d

Please sign in to comment.