mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
fix: do not display the handles (left/right) on preview mode
This commit is contained in:
parent
ccf1ebd54f
commit
1ebfe94953
@ -1827,6 +1827,7 @@ const TimelineControls = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Resize handles with both mouse and touch support */}
|
{/* Resize handles with both mouse and touch support */}
|
||||||
|
{isPlayingSegments ? null : <>
|
||||||
<div
|
<div
|
||||||
className="clip-segment-handle left"
|
className="clip-segment-handle left"
|
||||||
title="Resize segment start"
|
title="Resize segment start"
|
||||||
@ -1851,6 +1852,7 @@ const TimelineControls = ({
|
|||||||
handleSegmentResize(segment.id, false)(e);
|
handleSegmentResize(segment.id, false)(e);
|
||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
|
</>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@ -2373,6 +2375,7 @@ const TimelineControls = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Bottom circle for dragging */}
|
{/* Bottom circle for dragging */}
|
||||||
|
{isPlayingSegments ? null : (
|
||||||
<div
|
<div
|
||||||
className={`timeline-marker-drag ${isDragging ? 'dragging' : ''}`}
|
className={`timeline-marker-drag ${isDragging ? 'dragging' : ''}`}
|
||||||
onMouseDown={startDrag}
|
onMouseDown={startDrag}
|
||||||
@ -2380,6 +2383,7 @@ const TimelineControls = ({
|
|||||||
>
|
>
|
||||||
<span className="timeline-marker-drag-icon">⋮</span>
|
<span className="timeline-marker-drag-icon">⋮</span>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Trim Line Markers - hidden when segments exist */}
|
{/* Trim Line Markers - hidden when segments exist */}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user