From acd42a29f6370417ef188d668c4567e9892a8ed1 Mon Sep 17 00:00:00 2001
From: Nizav
Date: Mon, 14 Jul 2025 22:46:28 +0700
Subject: [PATCH] refactor: move the add button below the placeholder text
---
.../editor/media-panel/views/media.tsx | 49 +++++++++----------
1 file changed, 23 insertions(+), 26 deletions(-)
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 48e54961..8c5718b1 100644
--- a/apps/web/src/components/editor/media-panel/views/media.tsx
+++ b/apps/web/src/components/editor/media-panel/views/media.tsx
@@ -207,9 +207,8 @@ export function MediaView() {
- {/* Button to add/upload media */}
+ {/* Search and filter controls (removed old Add button) */}
- {/* Search and filter controls */}
@@ -265,8 +241,29 @@ export function MediaView() {
No media in project
- Drag files here or use the button above
+ Drag files here or use the button below
+
) : (