🐛 fix selection offset

This commit is contained in:
2026-02-28 11:23:55 +10:00
parent 2069d65353
commit 992d3a737e

View File

@@ -317,7 +317,7 @@ function buildTheme(fontSize: number, dark: boolean): ReturnType<typeof EditorVi
'.cm-cursor': { borderLeftColor: 'var(--accent)' }, '.cm-cursor': { borderLeftColor: 'var(--accent)' },
'.cm-selectionBackground': { backgroundColor: 'var(--active-bg)' }, '.cm-selectionBackground': { backgroundColor: 'var(--active-bg)' },
'&.cm-focused .cm-selectionBackground': { backgroundColor: 'var(--active-bg)' }, '&.cm-focused .cm-selectionBackground': { backgroundColor: 'var(--active-bg)' },
'.cm-line': { padding: '0', marginBottom: '14px' }, '.cm-line': { paddingBottom: '14px' },
'.cm-gutters': { display: 'none' }, '.cm-gutters': { display: 'none' },
'.cm-activeLine': { backgroundColor: 'transparent' }, '.cm-activeLine': { backgroundColor: 'transparent' },
'.cm-activeLineGutter': { backgroundColor: 'transparent' }, '.cm-activeLineGutter': { backgroundColor: 'transparent' },