From 183463c8173b2eb23744efd9881273f4970a22de Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 25 Oct 2025 00:32:14 +0200 Subject: [PATCH] feat: align home button to left next to profile button - Move home button from right side to left side in sidebar header - Add sidebar-header-left container for left-aligned elements - Update CSS to support new layout with flex positioning - Home button now appears next to profile button when logged in --- src/components/SidebarHeader.tsx | 128 ++++++++++++++++--------------- src/styles/layout/sidebar.css | 7 ++ 2 files changed, 72 insertions(+), 63 deletions(-) diff --git a/src/components/SidebarHeader.tsx b/src/components/SidebarHeader.tsx index 80d9824f..fa68e879 100644 --- a/src/components/SidebarHeader.tsx +++ b/src/components/SidebarHeader.tsx @@ -65,70 +65,70 @@ const SidebarHeader: React.FC = ({ onToggleCollapse, onLogou return ( <>
- {activeAccount && ( -
- + {showProfileMenu && ( +
+ + + + + +
+ +
)} - - {showProfileMenu && ( -
- - - - - -
- -
- )} -
- )} -
+
+ )} { @@ -141,6 +141,8 @@ const SidebarHeader: React.FC = ({ onToggleCollapse, onLogou ariaLabel="Home" variant="ghost" /> +
+
{ diff --git a/src/styles/layout/sidebar.css b/src/styles/layout/sidebar.css index 1631e0c7..c5da9b7a 100644 --- a/src/styles/layout/sidebar.css +++ b/src/styles/layout/sidebar.css @@ -54,6 +54,13 @@ } } +.sidebar-header-left { + display: flex; + align-items: center; + gap: 0.5rem; + flex: 1; +} + .sidebar-header-right { display: flex; align-items: center;