fix: Shared documents with system in dark mode display partially on light background

closes #1300
This commit is contained in:
Tom Moor
2020-06-09 20:38:34 -07:00
parent 20efa82ad9
commit b444874944
3 changed files with 34 additions and 15 deletions

View File

@@ -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;