hide scrollbar

it breaks ui
pull/276/head
Mikael Finstad 7 years ago
parent a47c65cbdb
commit f42148b8c6

@ -60,7 +60,7 @@ const SegmentList = memo(({
return ( return (
<Fragment> <Fragment>
<div style={{ padding: '0 10px', overflowY: 'scroll', flexGrow: 1 }}> <div style={{ padding: '0 10px', overflowY: 'scroll', flexGrow: 1 }} className="hide-scrollbar">
<div style={{ fontSize: 14, marginBottom: 10 }}> <div style={{ fontSize: 14, marginBottom: 10 }}>
<FaAngleRight <FaAngleRight
title="Close sidebar" title="Close sidebar"

@ -17,7 +17,7 @@ function onInfoClick(s, title) {
ReactSwal.fire({ ReactSwal.fire({
showCloseButton: true, showCloseButton: true,
title, title,
html: <div style={{ whiteSpace: 'pre', textAlign: 'left', overflow: 'auto', maxHeight: 300, overflowY: 'scroll' }}>{JSON.stringify(s, null, 2)}</div>, html: <div style={{ whiteSpace: 'pre', textAlign: 'left', overflow: 'auto', maxHeight: 300, overflowY: 'auto' }}>{JSON.stringify(s, null, 2)}</div>,
}); });
} }

@ -117,7 +117,7 @@ const Timeline = memo(({
<div style={{ position: 'relative' }}> <div style={{ position: 'relative' }}>
<div <div
style={{ overflowX: 'scroll' }} style={{ overflowX: 'scroll' }}
id="timeline-scroller" className="hide-scrollbar"
onWheel={onWheel} onWheel={onWheel}
onScroll={onTimelineScroll} onScroll={onTimelineScroll}
ref={timelineScrollerRef} ref={timelineScrollerRef}

@ -18,7 +18,6 @@ const isDev = window.require('electron-is-dev');
const os = window.require('os'); const os = window.require('os');
function getFfCommandLine(cmd, args) { function getFfCommandLine(cmd, args) {
const mapArg = arg => (/[^0-9a-zA-Z-_]/.test(arg) ? `'${arg}'` : arg); const mapArg = arg => (/[^0-9a-zA-Z-_]/.test(arg) ? `'${arg}'` : arg);
return `${cmd} ${args.map(mapArg).join(' ')}`; return `${cmd} ${args.map(mapArg).join(' ')}`;

@ -62,6 +62,6 @@ body {
color: rgba(0,0,0,0.5); color: rgba(0,0,0,0.5);
} }
#timeline-scroller::-webkit-scrollbar { .hide-scrollbar::-webkit-scrollbar {
display: none; display: none;
} }

Loading…
Cancel
Save