fix: Shared documents with system in dark mode display partially on light background
closes #1300
This commit is contained in:
@@ -57,6 +57,11 @@ class Layout extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
updateBackground() {
|
||||
// ensure the wider page color always matches the theme
|
||||
window.document.body.style.background = this.props.theme.background;
|
||||
}
|
||||
|
||||
@keydown('shift+/')
|
||||
handleOpenKeyboardShortcuts() {
|
||||
if (this.props.ui.editMode) return;
|
||||
@@ -67,11 +72,6 @@ class Layout extends React.Component<Props> {
|
||||
this.keyboardShortcutsOpen = false;
|
||||
};
|
||||
|
||||
updateBackground() {
|
||||
// ensure the wider page color always matches the theme
|
||||
window.document.body.style.background = this.props.theme.background;
|
||||
}
|
||||
|
||||
@keydown(['t', '/', 'meta+k'])
|
||||
goToSearch(ev) {
|
||||
if (this.props.ui.editMode) return;
|
||||
|
||||
Reference in New Issue
Block a user