Fix typo in scrollbarStyle option (#1107)

The option would be ignored when exporting the project through
next build && next export, failing to hide the vertical scroller.
main
Boy van Amstel 4 years ago committed by GitHub
parent c2357e63ef
commit f18e8c99af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -159,7 +159,7 @@ class Carbon extends React.PureComponent {
firstLineNumber: config.firstLineNumber, firstLineNumber: config.firstLineNumber,
mode: languageMode || 'plaintext', mode: languageMode || 'plaintext',
theme: config.theme, theme: config.theme,
scrollBarStyle: null, scrollbarStyle: null,
viewportMargin: Infinity, viewportMargin: Infinity,
lineWrapping: true, lineWrapping: true,
smartIndent: true, smartIndent: true,
@ -245,15 +245,13 @@ class Carbon extends React.PureComponent {
} }
.container .bg { .container .bg {
${ ${this.props.config.backgroundMode === 'image'
this.props.config.backgroundMode === 'image' ? `background: url(${backgroundImage});
? `background: url(${backgroundImage});
background-size: cover; background-size: cover;
background-repeat: no-repeat;` background-repeat: no-repeat;`
: `background: ${this.props.config.backgroundColor || config.backgroundColor}; : `background: ${this.props.config.backgroundColor || config.backgroundColor};
background-size: auto; background-size: auto;
background-repeat: repeat;` background-repeat: repeat;`}
}
position: absolute; position: absolute;
top: 0px; top: 0px;
right: 0px; right: 0px;
@ -280,11 +278,9 @@ class Carbon extends React.PureComponent {
position: relative; position: relative;
z-index: 1; z-index: 1;
border-radius: 5px; border-radius: 5px;
${ ${config.dropShadow
config.dropShadow ? `box-shadow: 0 ${config.dropShadowOffsetY} ${config.dropShadowBlurRadius} rgba(0, 0, 0, 0.55)`
? `box-shadow: 0 ${config.dropShadowOffsetY} ${config.dropShadowBlurRadius} rgba(0, 0, 0, 0.55)` : ''};
: ''
};
} }
.container :global(.CodeMirror__container .CodeMirror) { .container :global(.CodeMirror__container .CodeMirror) {

Loading…
Cancel
Save