diff --git a/src/components/SidebarHeader.tsx b/src/components/SidebarHeader.tsx index a1f14ffb..bb9153f8 100644 --- a/src/components/SidebarHeader.tsx +++ b/src/components/SidebarHeader.tsx @@ -36,61 +36,61 @@ const SidebarHeader: React.FC = ({ onToggleCollapse, onLogou return ( <>
- {!isMobile && ( - - )} -
{activeAccount && ( -
navigate('/me')} - style={{ cursor: 'pointer' }} + aria-label={`Profile: ${getUserDisplayName()}`} > {profileImage ? ( {getUserDisplayName()} ) : ( )} -
+ )} - navigate('/')} - title="Home" - ariaLabel="Home" - variant="ghost" - /> - navigate('/explore')} - title="Explore" - ariaLabel="Explore" - variant="ghost" - /> - - {activeAccount && ( +
navigate('/')} + title="Home" + ariaLabel="Home" variant="ghost" /> - )} + navigate('/explore')} + title="Explore" + ariaLabel="Explore" + variant="ghost" + /> + + {activeAccount && ( + + )} + {!isMobile && ( + + )}
diff --git a/src/styles/layout/sidebar.css b/src/styles/layout/sidebar.css index 192c4eb5..3c6958c5 100644 --- a/src/styles/layout/sidebar.css +++ b/src/styles/layout/sidebar.css @@ -59,6 +59,8 @@ align-items: center; gap: 0.5rem; margin-left: auto; + flex: 1; + justify-content: flex-end; } /* Mobile hamburger button now uses Tailwind utilities in ThreePaneLayout */ @@ -92,7 +94,7 @@ gap: 0.5rem; } -.profile-avatar { +.profile-avatar-button { min-width: 33px; min-height: 33px; width: 33px; @@ -108,10 +110,17 @@ color: var(--color-text); box-sizing: border-box; padding: 0; + cursor: pointer; + transition: all 0.2s ease; } -.profile-avatar img { width: 100%; height: 100%; object-fit: cover; } -.profile-avatar svg { font-size: 1rem; } +.profile-avatar-button:hover { + background: var(--color-bg-hover); + border-color: var(--color-border); +} + +.profile-avatar-button img { width: 100%; height: 100%; object-fit: cover; } +.profile-avatar-button svg { font-size: 1rem; } .sidebar-header-bar .toggle-sidebar-btn { background: transparent;