mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Ensure that each editor theme is only created once (#17095)
GitOrigin-RevId: 3551e02fab44fae7fcab5cb12886d45969e3990f
This commit is contained in:
@@ -36,10 +36,8 @@ function measureHalfLeading(view: EditorView) {
|
||||
}
|
||||
|
||||
function createTheme(halfLeading: number) {
|
||||
return EditorView.theme({
|
||||
'.cm-content': {
|
||||
'--half-leading': halfLeading + 'px',
|
||||
},
|
||||
return EditorView.contentAttributes.of({
|
||||
style: `--half-leading: ${halfLeading}px`,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user