1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

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

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
Shashank Tyagi 2024-11-10 19:36:54 +05:30 committed by GitHub
parent f091c32992
commit 4356a2010d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,6 +93,11 @@ const createTheme = (theme: EditorTheme): Extension[] => {
// need to be overridden. // need to be overridden.
'&, &.CodeMirror': baseGlobalStyle, '&, &.CodeMirror': baseGlobalStyle,
'& .cm-dropCursor': {
backgroundColor: isDarkTheme ? 'white' : 'black',
width: '1px',
},
// These must be !important or more specific than CodeMirror's built-ins // These must be !important or more specific than CodeMirror's built-ins
'& .cm-content': { '& .cm-content': {
fontFamily: theme.fontFamily, fontFamily: theme.fontFamily,