mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
make segments list scrollable
This commit is contained in:
parent
624efa7dbc
commit
7d52c864d6
@ -460,7 +460,7 @@ function SegmentList({
|
||||
{header}
|
||||
</div>
|
||||
|
||||
<div style={{ padding: '0 10px', overflowY: 'scroll', flexGrow: 1 }} className="hide-scrollbar">
|
||||
<div style={{ padding: '0 .1em 0 .3em', overflowX: 'hidden', overflowY: 'scroll', flexGrow: 1 }} className="consistent-scrollbar">
|
||||
<ReactSortable list={sortableList} setList={setSortableList} disabled={!!invertCutSegments} handle=".segment-handle">
|
||||
{sortableList.map(({ id, seg }, index) => {
|
||||
const selected = !invertCutSegments && isSegmentSelected({ segId: seg.segId });
|
||||
|
@ -63,6 +63,17 @@ code.highlighted {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.consistent-scrollbar::-webkit-scrollbar {
|
||||
width: .5em;
|
||||
}
|
||||
.consistent-scrollbar::-webkit-scrollbar-track-piece {
|
||||
background: transparent;
|
||||
}
|
||||
.consistent-scrollbar::-webkit-scrollbar-thumb {
|
||||
background: var(--gray11);
|
||||
border-radius: .1em;
|
||||
}
|
||||
|
||||
.swal2-losslesscut-radio {
|
||||
font-size: 0.8em;
|
||||
flex-direction: column;
|
||||
|
Loading…
Reference in New Issue
Block a user