fix: notes position, navbar hot reload

This commit is contained in:
David Ralph
2021-09-02 15:27:00 +01:00
parent d368270553
commit 604834c4d7
3 changed files with 3 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -46,7 +46,7 @@ export default class Notes extends PureComponent {
render() {
return (
<span id='noteContainer' className='notescontainer' style={{ visibility: this.state.visibility, marginleft: this.state.marginLeft }}>
<span id='noteContainer' className='notescontainer' style={{ visibility: this.state.visibility, marginLeft: this.state.marginLeft }}>
<div className='topbarnotes'>
<NotesRounded/>
<h3>{this.language.title}</h3>