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

make segments list scrollable

This commit is contained in:
Mikael Finstad 2024-08-24 00:49:18 +02:00
parent 624efa7dbc
commit 7d52c864d6
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26
2 changed files with 12 additions and 1 deletions

View File

@ -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 });

View File

@ -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;