Skip to content

Commit

Permalink
Desktop: Fixes #11313: Don't completely left-align the editor with th…
Browse files Browse the repository at this point in the history
…e toolbar (#11316)
  • Loading branch information
personalizedrefrigerator authored Nov 5, 2024
1 parent da10297 commit cbe5505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/CodeMirror/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbe5505

Please sign in to comment.