From 07351ca7e6ca8da79fc0206aa843847184c12efe Mon Sep 17 00:00:00 2001 From: GeorgeCaoJ Date: Wed, 25 Jun 2025 20:04:21 +0800 Subject: [PATCH] fix(timeline): drag and drop to create new track --- apps/web/src/components/editor/timeline.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index ce0ffa3..f84a186 100644 --- a/apps/web/src/components/editor/timeline.tsx +++ b/apps/web/src/components/editor/timeline.tsx @@ -566,15 +566,6 @@ export function Timeline() { onMouseLeave={() => setIsInTimeline(false)} onWheel={handleWheel} > - {/* Show overlay when dragging media over the timeline */} - {isDragOver && ( -
-
- Drop media here to add to timeline -
-
- )} - {/* Toolbar */}
@@ -953,6 +944,17 @@ export function Timeline() { )} )} + {isDragOver && ( +
+
Drop media here to add a new track
+
+ )}