From 00dc7f7bda0ac464eb60b703f95eb9da5c79c6e9 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 25 May 2026 19:45:04 +0800 Subject: [PATCH] fix(ui): remove filter icon and fix popover overflow on detail pages --- src/ui/components/file-browser/toolbar.tsx | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/ui/components/file-browser/toolbar.tsx b/src/ui/components/file-browser/toolbar.tsx index 890fdbe3..17527085 100644 --- a/src/ui/components/file-browser/toolbar.tsx +++ b/src/ui/components/file-browser/toolbar.tsx @@ -15,7 +15,6 @@ import { Avatar, AvatarFallback } from '../ui/avatar' import { Button } from '../ui/button' import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover' import { Separator } from '../ui/separator' -import { Filter } from 'lucide-react' type FileBrowserToolbarProps = { teamId: string @@ -164,7 +163,6 @@ export function FileBrowserToolbar({ size="sm" className="inline-flex items-center gap-2 px-4 py-2 hover:bg-primary/10 font-semibold rounded-xl cursor-pointer h-8" > - Filter {activeFiltersCount > 0 && ( @@ -173,22 +171,24 @@ export function FileBrowserToolbar({ )} - - { - onFilterChange(newConditions) - onUpdateCollection?.({ - filter: { - ...collection.filter, - conditions: newConditions, - }, - }) - }} - excludeFields={[]} - hidePrefix - /> + +
+ { + onFilterChange(newConditions) + onUpdateCollection?.({ + filter: { + ...collection.filter, + conditions: newConditions, + }, + }) + }} + excludeFields={[]} + hidePrefix + /> +
) : (