1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Scroll Bars can now be hidden (#2713)

* Scroll Bars can now be hidden

* Fix lint problems

* fix lint errors

* Fix lint

* Fix lint

* Change scrollBar to showScrollBar
This commit is contained in:
Gonçalo Santos
2020-02-24 08:14:35 +00:00
committed by GitHub
parent 76de78a72e
commit fd54a7b85c
4 changed files with 32 additions and 2 deletions

View File

@@ -94,6 +94,7 @@ class UiTab extends React.Component {
showTagsAlphabetically: this.refs.showTagsAlphabetically.checked,
saveTagsAlphabetically: this.refs.saveTagsAlphabetically.checked,
enableLiveNoteCounts: this.refs.enableLiveNoteCounts.checked,
showScrollBar: this.refs.showScrollBar.checked,
showMenuBar: this.refs.showMenuBar.checked,
disableDirectWrite:
this.refs.uiD2w != null ? this.refs.uiD2w.checked : false
@@ -351,9 +352,21 @@ class UiTab extends React.Component {
</label>
</div>
) : null}
<div styleName='group-checkBoxSection'>
<label>
<input
onChange={e => this.handleUIChange(e)}
checked={this.state.config.ui.showScrollBar}
ref='showScrollBar'
type='checkbox'
/>
&nbsp;
{i18n.__(
'Show the scroll bars in the editor and in the markdown preview (It will be applied after restarting)'
)}
</label>
</div>
<div styleName='group-header2'>Tags</div>
<div styleName='group-checkBoxSection'>
<label>
<input