Skip to content

Commit

Permalink
Desktop: Fix drop cursor styling issue (#11336) (#11345)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Cozic <[email protected]>
  • Loading branch information
Shashank Tyagi and laurent22 authored Nov 10, 2024
1 parent f091c32 commit 4356a20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/CodeMirror/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ const createTheme = (theme: EditorTheme): Extension[] => {
// need to be overridden.
'&, &.CodeMirror': baseGlobalStyle,

'& .cm-dropCursor': {
backgroundColor: isDarkTheme ? 'white' : 'black',
width: '1px',
},

// These must be !important or more specific than CodeMirror's built-ins
'& .cm-content': {
fontFamily: theme.fontFamily,
Expand Down

0 comments on commit 4356a20

Please sign in to comment.