diff --git a/src/components/widgets/navbar/Notes.jsx b/src/components/widgets/navbar/Notes.jsx
index 7183e54f..545b7c38 100644
--- a/src/components/widgets/navbar/Notes.jsx
+++ b/src/components/widgets/navbar/Notes.jsx
@@ -6,6 +6,7 @@ import TextareaAutosize from '@mui/material/TextareaAutosize';
import { toast } from 'react-toastify';
import Tooltip from '../../helpers/tooltip/Tooltip';
import { saveFile } from 'modules/helpers/settings/modals';
+import EventBus from 'modules/helpers/eventbus';
class Notes extends PureComponent {
constructor() {
@@ -17,6 +18,25 @@ class Notes extends PureComponent {
};
}
+ setZoom() {
+ this.setState({
+ zoomFontSize: Number(((localStorage.getItem('zoomNavbar') || 100) / 100) * 1.2) + "rem"
+ })
+ }
+
+ componentDidMount() {
+ EventBus.on('refresh', (data) => {
+ if (data === 'navbar' || data === 'background') {
+ this.forceUpdate();
+ try {
+ this.setZoom();
+ } catch (e) {}
+ }
+ });
+
+ this.setZoom();
+ }
+
setNotes = (e) => {
localStorage.setItem('notes', e.target.value);
this.setState({
@@ -70,7 +90,7 @@ class Notes extends PureComponent {
onFocus={() => this.showNotes()}
onBlur={() => this.hideNotes()}
ref={this.props.notesRef}
- style={{ fontSize: this.props.fontSize }}
+ style={{ fontSize: this.state.zoomFontSize }}
>