From 1376bee16db8933cc65b803fb53306b5c561d808 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 10 Jul 2025 20:10:01 +0200 Subject: [PATCH] fix: improve element dragging (can drag outside timeline without it breaking) --- .../components/editor/properties-panel.tsx | 22 ++- .../src/components/editor/timeline-track.tsx | 134 ++++++++++++------ 2 files changed, 113 insertions(+), 43 deletions(-) diff --git a/apps/web/src/components/editor/properties-panel.tsx b/apps/web/src/components/editor/properties-panel.tsx index 490afa4..e9b651b 100644 --- a/apps/web/src/components/editor/properties-panel.tsx +++ b/apps/web/src/components/editor/properties-panel.tsx @@ -8,6 +8,13 @@ import { useTimelineStore } from "@/stores/timeline-store"; import { Textarea } from "../ui/textarea"; import { MediaElement, TextElement } from "@/types/timeline"; import { useMediaStore } from "@/stores/media-store"; +import { + Select, + SelectContent, + SelectTrigger, + SelectValue, + SelectItem, +} from "../ui/select"; export function PropertiesPanel() { const { activeProject } = useProjectStore(); @@ -31,7 +38,7 @@ export function PropertiesPanel() { ); const TextProperties = (element: TextElement, trackId: string) => ( -
+