Skip to content

Commit

Permalink
fix(editor): update line numbers to not be selectable COMPASS-7941 (#…
Browse files Browse the repository at this point in the history
…5966)

fix(editor): make line numbers not selectable COMPASS-7941
  • Loading branch information
Anemy authored Jun 25, 2024
1 parent 48c2aec commit 5d49e65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/compass-editor/src/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ function getStylesForTheme(theme: CodemirrorThemeType) {
'& .cm-gutter-lint .cm-gutterElement': {
padding: '0',
},
'& .cm-lineNumbers .cm-gutterElement': {
userSelect: 'none',
},
'& .cm-gutter-lint .cm-lint-marker': {
width: `${spacing[3]}px`,
height: `${spacing[3]}px`,
Expand Down

0 comments on commit 5d49e65

Please sign in to comment.