From 5ec57a1b272801b977d7aebc3378bfcf6425f4ba Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Sat, 13 Jun 2026 02:49:08 -0400 Subject: [PATCH] fix(MediaManager): enhance filter and sort bar with transition effects --- src/app/components/MediaManager.tsx | 50 +++++++++++++++-------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/src/app/components/MediaManager.tsx b/src/app/components/MediaManager.tsx index 2ab05e8..77fdd66 100644 --- a/src/app/components/MediaManager.tsx +++ b/src/app/components/MediaManager.tsx @@ -1107,32 +1107,34 @@ export default function MediaManager({ initialPath, rootPath, title, config, set {/* ── Filter + sort bar ── */} - {showFilter &&
-
- - setFilter(e.target.value)} - placeholder="Filter…" - className="w-full pl-7 pr-6 py-1 text-sm border border-neutral-300 rounded bg-white" - /> - {filter && ( - + )} +
+ {(['name', 'size', 'date'] as SortKey[]).map(k => ( + - )} + ))}
- {(['name', 'size', 'date'] as SortKey[]).map(k => ( - - ))} - } + {/* ── Selection / clipboard bar ── */} {(selCount > 0 || clipboard) && (