From 2ad39f978089ebc73c49675f084f566d84d730a9 Mon Sep 17 00:00:00 2001 From: ZProger Date: Sun, 30 Aug 2026 05:08:41 +0300 Subject: [PATCH] fix: collapsed-sidebar logo expands the menu; crypto nav icon matches the rest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Collapsed sidebar had no way to expand except the button at the bottom — the logo at the top was purely decorative. It's now a real button in that state (expanded state unchanged, still non-interactive there). Swapped the Crypto nav icon from Bitcoin (a filled coin-badge glyph) to Coins — same thin line-icon style as the rest of the sidebar (Layers, Target, Flag, ...), where Bitcoin's brand-logo shape stood out. Bitcoin stays as-is elsewhere (holdings table row fallback, Net Worth breakdown) — appropriate there as a specific-asset placeholder, this was only about the nav item. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01855PiW5Wd8n4aRW4n9kByY --- frontend/src/components/layout/Sidebar.tsx | 22 ++++++++++++++++++---- frontend/src/lib/navigation.ts | 4 ++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index bc8f577..b88bd52 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -94,10 +94,24 @@ export function Sidebar({ collapsed, onToggleCollapsed, mobileOpen, onCloseMobil collapsed ? "w-[72px]" : "w-56" )} > -
- - {!collapsed && Aurum} -
+ {collapsed ? ( + // Collapsed: the logo doubles as an "expand" button — the sidebar + // has no visible label to click in this state, so the icon itself + // needs to be the way back to the full menu. + + ) : ( +
+ + Aurum +
+ )}