mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Merge pull request #27078 from overleaf/mj-dark-mode-panel-border
[web] Use correct border color between toolbar and editor GitOrigin-RevId: 48e08bdec57b25f2f70731f89c66be8c487b9e41
This commit is contained in:
@@ -319,8 +319,18 @@ const toolbarTheme = EditorView.theme({
|
||||
},
|
||||
})
|
||||
|
||||
const toolbarBorderTheme = EditorView.baseTheme({
|
||||
'&light.overall-theme-dark .cm-panels-top': {
|
||||
borderBottom: '1px solid var(--border-divider-dark)',
|
||||
},
|
||||
})
|
||||
|
||||
/**
|
||||
* A panel which contains the editor toolbar, provided by a state field which allows the toolbar to be toggled,
|
||||
* and styles for the toolbar.
|
||||
*/
|
||||
export const toolbarPanel = () => [toolbarState, toolbarTheme]
|
||||
export const toolbarPanel = () => [
|
||||
toolbarState,
|
||||
toolbarTheme,
|
||||
toolbarBorderTheme,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user