mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
fix: notes position, navbar hot reload
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user