1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 11:15:12 +00:00

Remove overcomplicated solution for scrollbar styling.

This commit is contained in:
hikerpig
2019-11-06 11:42:14 +08:00
committed by Junyoung Choi
parent 132d04326b
commit 52ea44ceaa

View File

@@ -50,7 +50,6 @@ const CSS_FILES = [
* @param {String} opts.theme * @param {String} opts.theme
* @param {Boolean} [opts.lineNumber] Should show line number * @param {Boolean} [opts.lineNumber] Should show line number
* @param {Boolean} [opts.scrollPastEnd] * @param {Boolean} [opts.scrollPastEnd]
* @param {Boolean} [opts.optimizeOverflowScroll] Should tweak body style to optimize overflow scrollbar display
* @param {Boolean} [opts.allowCustomCSS] Should add custom css * @param {Boolean} [opts.allowCustomCSS] Should add custom css
* @param {String} [opts.customCSS] Will be added to bottom, only if `opts.allowCustomCSS` is truthy * @param {String} [opts.customCSS] Will be added to bottom, only if `opts.allowCustomCSS` is truthy
* @returns {String} * @returns {String}
@@ -62,7 +61,6 @@ function buildStyle (opts) {
codeBlockFontFamily, codeBlockFontFamily,
lineNumber, lineNumber,
scrollPastEnd, scrollPastEnd,
optimizeOverflowScroll,
theme, theme,
allowCustomCSS, allowCustomCSS,
customCSS customCSS
@@ -107,7 +105,6 @@ body {
box-sizing: border-box; box-sizing: border-box;
` `
: ''} : ''}
${optimizeOverflowScroll ? 'height: 100%;' : ''}
} }
@media print { @media print {
body { body {
@@ -687,7 +684,6 @@ export default class MarkdownPreview extends React.Component {
codeBlockFontFamily, codeBlockFontFamily,
lineNumber, lineNumber,
scrollPastEnd, scrollPastEnd,
optimizeOverflowScroll: true,
theme, theme,
allowCustomCSS, allowCustomCSS,
customCSS customCSS