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

@@ -28,7 +28,7 @@ export default function AppearanceSettings() {
<Radio name='theme' title={appearance.theme.title} options={themeOptions} category='other' />
<h3>{appearance.navbar.title}</h3>
<Checkbox name='notesEnabled' text={appearance.navbar.notes} category='navbar' element='.other' />
<Checkbox name='notesEnabled' text={appearance.navbar.notes} category='navbar' />
<Dropdown label={appearance.navbar.refresh} name='refresh' category='navbar'>
<option value='false'>{appearance.navbar.refresh_options.none}</option>
<option value='background'>{background.title}</option>

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>