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:
@@ -4,6 +4,7 @@ import { store, history } from './store'
|
||||
import React, { Fragment } from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
require('!!style!css!stylus?sourceMap!./global.styl')
|
||||
import config from 'browser/main/lib/ConfigManager'
|
||||
import { Route, Switch, Redirect } from 'react-router-dom'
|
||||
import { ConnectedRouter } from 'connected-react-router'
|
||||
import DevTools from './DevTools'
|
||||
@@ -77,6 +78,16 @@ document.addEventListener('click', function(e) {
|
||||
if (infoPanel) infoPanel.style.display = 'none'
|
||||
})
|
||||
|
||||
if (!config.get().ui.showScrollBar) {
|
||||
document.styleSheets[54].insertRule('::-webkit-scrollbar {display: none}')
|
||||
document.styleSheets[54].insertRule(
|
||||
'::-webkit-scrollbar-corner {display: none}'
|
||||
)
|
||||
document.styleSheets[54].insertRule(
|
||||
'::-webkit-scrollbar-thumb {display: none}'
|
||||
)
|
||||
}
|
||||
|
||||
const el = document.getElementById('content')
|
||||
|
||||
function notify(...args) {
|
||||
|
||||
Reference in New Issue
Block a user