diff --git a/lib/components/term.js b/lib/components/term.js index f0b9b6b9..e4add848 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -232,9 +232,8 @@ export default class Term extends Component { font-size: ${this.props.fontSize}px; } `; - let osSpecificCss = ''; - if (process.platform === 'win32') { - osSpecificCss = `::-webkit-scrollbar { + const scrollBarCss = ` + ::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-thumb { @@ -244,18 +243,8 @@ export default class Term extends Component { } ::-webkit-scrollbar-thumb:window-inactive { background: ${this.props.borderColor}; - }`; - } else if (process.platform === 'darwin') { - osSpecificCss = `::-webkit-scrollbar { - width: 9px; - background: transparent; - } - ::-webkit-scrollbar-thumb { - -webkit-border-radius: 10px; - border-radius: 10px; - -webkit-box-shadow: inset 0 0 0 1px ${this.props.borderColor}; - }`; - } + } + `; return URL.createObjectURL(new Blob([` .cursor-node[focus="false"] { border-width: 1px !important; @@ -265,7 +254,7 @@ export default class Term extends Component { border-bottom-width: 2px; } ${hyperCaret} - ${osSpecificCss} + ${scrollBarCss} ${css} `], {type: 'text/css'})); }