diff --git a/apps/web/src/components/editor/media-panel/index.tsx b/apps/web/src/components/editor/media-panel/index.tsx
index 1dfa08c0..359612f8 100644
--- a/apps/web/src/components/editor/media-panel/index.tsx
+++ b/apps/web/src/components/editor/media-panel/index.tsx
@@ -46,9 +46,9 @@ export function MediaPanel() {
};
return (
-
+
-
{viewMap[activeTab]}
+
{viewMap[activeTab]}
);
}
diff --git a/apps/web/src/components/editor/media-panel/views/media.tsx b/apps/web/src/components/editor/media-panel/views/media.tsx
index 66d0d00d..f218dc14 100644
--- a/apps/web/src/components/editor/media-panel/views/media.tsx
+++ b/apps/web/src/components/editor/media-panel/views/media.tsx
@@ -25,6 +25,7 @@ import {
import { DraggableMediaItem } from "@/components/ui/draggable-item";
import { useProjectStore } from "@/stores/project-store";
import { useTimelineStore } from "@/stores/timeline-store";
+import { ScrollArea } from "@/components/ui/scroll-area";
export function MediaView() {
const { mediaItems, addMediaItem, removeMediaItem } = useMediaStore();
@@ -204,7 +205,7 @@ export function MediaView() {
className={`h-full flex flex-col gap-1 transition-colors relative ${isDragOver ? "bg-accent/30" : ""}`}
{...dragProps}
>
-
+
{/* Search and filter controls */}
-
- {isDragOver || filteredMediaItems.length === 0 ? (
-
- ) : (
-
- {/* Render each media item as a draggable button */}
- {filteredMediaItems.map((item) => (
-
-
-
- useTimelineStore
- .getState()
- .addMediaAtTime(item, currentTime)
- }
- rounded={false}
- />
-
-
- Export clips
- handleRemove(e, item.id)}
- >
- Delete
-
-
-
- ))}
-
- )}
-
+
+
+ {isDragOver || filteredMediaItems.length === 0 ? (
+
+ ) : (
+
+ {/* Render each media item as a draggable button */}
+ {filteredMediaItems.map((item) => (
+
+
+
+ useTimelineStore
+ .getState()
+ .addMediaAtTime(item, currentTime)
+ }
+ rounded={false}
+ />
+
+
+ Export clips
+ handleRemove(e, item.id)}
+ >
+ Delete
+
+
+
+ ))}
+
+ )}
+
+
>
);