Skip to content

The open-source CapCut alternative

style: change border color for selected timeline clips from primary to foreground

Maze Wintherd04ba1468ec5
diff --git a/apps/web/src/components/editor/timeline-clip.tsx b/apps/web/src/components/editor/timeline-clip.tsx
index 88767a15..ddc58f8d 100644
--- a/apps/web/src/components/editor/timeline-clip.tsx
+++ b/apps/web/src/components/editor/timeline-clip.tsx
@@ -295,7 +295,7 @@ export function TimelineClip({
<div
className={`relative h-full rounded-[0.15rem] cursor-pointer overflow-hidden ${getTrackColor(
track.type
- )} ${isSelected ? "border-b-[0.5px] border-t-[0.5px] border-primary" : ""} ${
+ )} ${isSelected ? "border-b-[0.5px] border-t-[0.5px] border-foreground" : ""} ${
isBeingDragged ? "z-50" : "z-10"
}`}
onClick={(e) => onClipClick && onClipClick(e, clip)}