From 604834c4d734999f537f1ae8fff8ae4a606a27a5 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Thu, 2 Sep 2021 15:27:00 +0100 Subject: [PATCH] fix: notes position, navbar hot reload --- src/components/modals/main/settings/sections/Appearance.jsx | 2 +- src/components/widgets/navbar/Navbar.jsx | 1 + src/components/widgets/navbar/Notes.jsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/modals/main/settings/sections/Appearance.jsx b/src/components/modals/main/settings/sections/Appearance.jsx index 8e388026..33c3d41e 100644 --- a/src/components/modals/main/settings/sections/Appearance.jsx +++ b/src/components/modals/main/settings/sections/Appearance.jsx @@ -28,7 +28,7 @@ export default function AppearanceSettings() {

{appearance.navbar.title}

- + diff --git a/src/components/widgets/navbar/Navbar.jsx b/src/components/widgets/navbar/Navbar.jsx index 2a3a7abb..ea12a0c1 100644 --- a/src/components/widgets/navbar/Navbar.jsx +++ b/src/components/widgets/navbar/Navbar.jsx @@ -25,6 +25,7 @@ export default class Navbar extends PureComponent { componentDidMount() { EventBus.on('refresh', (data) => { if (data === 'navbar' || data === 'background') { + this.refreshValue = localStorage.getItem('refresh'); this.forceUpdate(); this.setZoom(); } diff --git a/src/components/widgets/navbar/Notes.jsx b/src/components/widgets/navbar/Notes.jsx index 5b4d68d2..5bcc8199 100644 --- a/src/components/widgets/navbar/Notes.jsx +++ b/src/components/widgets/navbar/Notes.jsx @@ -46,7 +46,7 @@ export default class Notes extends PureComponent { render() { return ( - +

{this.language.title}