From e790d9bbb23d268819f23498bdca162d6ebd0219 Mon Sep 17 00:00:00 2001 From: moe-berri Date: Fri, 6 Nov 2026 17:01:48 +0800 Subject: [PATCH] fix(ui): simplify collapsed workspace dropdown (#50369) --- .../src/components/Navbar/ViewSwitcher.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ui/litellm-dashboard/src/components/Navbar/ViewSwitcher.tsx b/ui/litellm-dashboard/src/components/Navbar/ViewSwitcher.tsx index 93b5894d9c6..e9eb5586c42 100644 --- a/ui/litellm-dashboard/src/components/Navbar/ViewSwitcher.tsx +++ b/ui/litellm-dashboard/src/components/Navbar/ViewSwitcher.tsx @@ -9,7 +9,7 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { Check, ChevronDown, ChevronsUpDown, MessageSquare, PanelsTopLeft } from "lucide-react"; +import { Check, ChevronDown, ChevronsUpDown } from "lucide-react"; import { useSidebar } from "@/components/shared/Sidebar"; import { usePluginMode } from "@/contexts/PluginModeContext"; import { useUISettings } from "@/app/(dashboard)/hooks/uiSettings/useUISettings"; @@ -65,7 +65,6 @@ export default function ViewSwitcher({ className, contentClassName }: ViewSwitch const isChatRoute = isWorkspaceRoute(normalizedPathname, CHAT); const isMoyaiRoute = isWorkspaceRoute(normalizedPathname, MOYAI); const isStandaloneRoute = isChatRoute || isMoyaiRoute; - const WorkspaceIcon = isChatRoute ? MessageSquare : PanelsTopLeft; const gatewayLabel = term(t("shell.viewSwitcher.aiGateway")); const activeLabel = activeWorkspaceLabel( @@ -150,16 +149,13 @@ export default function ViewSwitcher({ className, contentClassName }: ViewSwitch "max-w-[220px] gap-1.5 px-3 dark:bg-transparent", className, collapsed && - "mx-auto flex size-9 justify-center gap-0.5 border-sidebar-border p-0 text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground", + "mx-auto flex size-9 justify-center gap-0 border-sidebar-border p-0 text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground", )} /> } > {collapsed ? ( - <> - - - + ) : ( <>