mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[web] fix comment input in visual mode (#35665)
GitOrigin-RevId: 7aced47d90a856fe9ebcb07f8148c4987b3583c8
This commit is contained in:
@@ -50,6 +50,11 @@ type MentionsInputProps = {
|
||||
|
||||
// Shared editor styling for the mentions input.
|
||||
const mentionsInputTheme = EditorView.theme({
|
||||
// reset variables to override visual mode's .cm-content rules
|
||||
'&.cm-editor': {
|
||||
'--visual-font-family': 'var(--bs-body-font-family)',
|
||||
'--visual-font-size': 'var(--font-size)',
|
||||
},
|
||||
// double the specificity to override the base font family used by theme.ts regardless of extension load order
|
||||
'.cm-content.cm-content': {
|
||||
fontFamily: 'var(--bs-body-font-family)',
|
||||
|
||||
Reference in New Issue
Block a user