fix: sync gutter element heights during editor font size zoom
CSS variable changes alone don't trigger CodeMirror's measure cycle, so gutter element heights would diverge from content line heights. The fix reconfigures the font theme compartment (throttled to once per rAF) to force a proper state transition → measure → syncGutters path. Also adds missing fontFamily on .cm-gutters and i18n for "Follow app theme".
This commit is contained in:
1 parent
dbd2b2bab5
commit
ae49d87166
5 files changed
+39
-2
No files matched your search
@@ -1286,6 +1286,7 @@ export default {
|
||||
fontSize: "Font Size",
|
||||
theme: "Theme",
|
||||
selectTheme: "Select theme...",
|
||||
followAppTheme: "Follow app theme",
|
||||
appLayout: "Interface Layout",
|
||||
appLayoutSeparated: "Modern separated",
|
||||
appLayoutSeparatedDescription: "Clear panel separation with block-style tabs.",
|
||||
|
||||
@@ -1263,6 +1263,7 @@ export default {
|
||||
fontSize: "字号",
|
||||
theme: "主题",
|
||||
selectTheme: "选择主题...",
|
||||
followAppTheme: "跟随应用主题",
|
||||
appLayout: "界面布局",
|
||||
appLayoutSeparated: "现代分隔",
|
||||
appLayoutSeparatedDescription: "面板分隔更清晰,标签页为块状样式。",
|
||||
|
||||
Reference in new issue
Block a user