Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Fix drop cursor styling issue (#11336) #11345

Merged
merged 9 commits into from
Nov 10, 2024
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
Loading