Skip to content

The open-source CapCut alternative

fix: Added z-index in playhead so it doesnt appears above popups

pratiyankkumar8208d931d00c
diff --git a/apps/web/src/components/editor/timeline/timeline-playhead.tsx b/apps/web/src/components/editor/timeline/timeline-playhead.tsx
index 7a357067..33fcf4f5 100644
--- a/apps/web/src/components/editor/timeline/timeline-playhead.tsx
+++ b/apps/web/src/components/editor/timeline/timeline-playhead.tsx
@@ -72,6 +72,7 @@ export function TimelinePlayhead({
top: 0,
height: `${totalHeight}px`,
width: "2px", // Slightly wider for better click target
+ zIndex: 50,
}}
onMouseDown={handlePlayheadMouseDown}
>