Skip to content

Open source CapCut alternative.

TypeScript

feat(site): timeline clip surfaces draw black

David Le272f07357803
diff --git a/site/src/cut/components/Timeline.tsx b/site/src/cut/components/Timeline.tsx
index 471d42a2..49cf1c2a 100644
--- a/site/src/cut/components/Timeline.tsx
+++ b/site/src/cut/components/Timeline.tsx
@@ -2113,7 +2113,7 @@ export function Timeline() {
// and it rides above the row's clips (z-20), so a drag reads as a
// placed segment sliding to its landing spot, not a hole to fill.
<div
- className="tl-asset-drop-slot pointer-events-none absolute top-0.5 z-20 overflow-hidden rounded-lg bg-neutral-200 opacity-90 shadow-2xl ring-[1.5px] ring-[#0a84ff]/70 transition-[left] duration-100 ease-out"
+ className="tl-asset-drop-slot pointer-events-none absolute top-0.5 z-20 overflow-hidden rounded-lg bg-black opacity-90 shadow-2xl ring-[1.5px] ring-[#0a84ff]/70 transition-[left] duration-100 ease-out"
style={{
left: assetDrop.t * pps,
width: Math.max(10, assetDrop.len * pps - CLIP_GAP),
@@ -3065,7 +3065,7 @@ function ClipView({
return (
<div
className={cn(
- "tl-clip group absolute top-0.5 cursor-grab overflow-hidden rounded-lg bg-neutral-200 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
+ "tl-clip group absolute top-0.5 cursor-grab overflow-hidden rounded-lg bg-black shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
selected && SELECTED_SHADOW,
clip.hidden && "opacity-40 grayscale",
drag
@@ -3833,7 +3833,7 @@ function OverlayClipView({
return (
<div
className={cn(
- "tl-overlay-clip group absolute top-0.5 cursor-grab overflow-hidden rounded-lg bg-neutral-200 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
+ "tl-overlay-clip group absolute top-0.5 cursor-grab overflow-hidden rounded-lg bg-black shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
selected && SELECTED_SHADOW,
clip.hidden && "opacity-40 grayscale",
drag
diff --git a/site/src/cut/components/editor-mock/MockTimeline.tsx b/site/src/cut/components/editor-mock/MockTimeline.tsx
index 7356e3fc..25c14d39 100644
--- a/site/src/cut/components/editor-mock/MockTimeline.tsx
+++ b/site/src/cut/components/editor-mock/MockTimeline.tsx
@@ -68,7 +68,7 @@ export function MockTimeline({ project }: { project: MockProject }) {
role="img"
aria-label={c.label}
className={cn(
- "absolute top-0.5 overflow-hidden rounded-lg bg-neutral-200 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
+ "absolute top-0.5 overflow-hidden rounded-lg bg-black shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
c.selected && "z-10 ring-2 ring-[#0a84ff]"
)}
style={{