1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

hide scrollbar

it breaks ui
This commit is contained in:
Mikael Finstad 2020-03-05 01:42:25 +08:00
parent a47c65cbdb
commit f42148b8c6
5 changed files with 5 additions and 6 deletions

View File

@ -60,7 +60,7 @@ const SegmentList = memo(({
return (
<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 }}>
<FaAngleRight
title="Close sidebar"

View File

@ -17,7 +17,7 @@ function onInfoClick(s, title) {
ReactSwal.fire({
showCloseButton: true,
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>,
});
}

View File

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

View File

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

View File

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