From d11d835c7cc255b4e7e3e8bac59bea653bd9e1ef Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Tue, 1 Jul 2025 00:13:41 +0200 Subject: [PATCH] style: fresh look on media panel --- .../web/src/components/editor/media-panel.tsx | 99 ++++++++++--------- 1 file changed, 55 insertions(+), 44 deletions(-) diff --git a/apps/web/src/components/editor/media-panel.tsx b/apps/web/src/components/editor/media-panel.tsx index abbd3e5..a9e15e2 100644 --- a/apps/web/src/components/editor/media-panel.tsx +++ b/apps/web/src/components/editor/media-panel.tsx @@ -10,6 +10,12 @@ import { toast } from "sonner"; import { AspectRatio } from "../ui/aspect-ratio"; import { Button } from "../ui/button"; import { DragOverlay } from "../ui/drag-overlay"; +import { + ContextMenu, + ContextMenuContent, + ContextMenuItem, + ContextMenuTrigger, +} from "../ui/context-menu"; // MediaPanel lets users add, view, and drag media (images, videos, audio) into the project. // You can upload files or drag them from your computer. Dragging from here to the timeline adds them to your video project. @@ -131,23 +137,22 @@ export function MediaPanel() { if (item.type === "image") { return ( - {item.name} +
+ {item.name} +
); } if (item.type === "video") { if (item.thumbnailUrl) { return ( -
+
{item.name}