fix: add tooltips to notifications and profile when sidebar collapsed

This commit is contained in:
Usman Baig
2026-03-19 01:02:16 +01:00
parent dd76aed157
commit 177c33830c

View File

@@ -390,9 +390,12 @@ export default function Sidebar({
<div className="border-t border-neutral-200/60 dark:border-neutral-800/60 px-2 py-3 shrink-0"> <div className="border-t border-neutral-200/60 dark:border-neutral-800/60 px-2 py-3 shrink-0">
{/* Notifications, Profile — same layout as nav items */} {/* Notifications, Profile — same layout as nav items */}
<div className="space-y-0.5 mb-1"> <div className="space-y-0.5 mb-1">
<span title={c ? 'Notifications' : undefined}>
<NotificationCenter anchor="right" variant="sidebar"> <NotificationCenter anchor="right" variant="sidebar">
<Label collapsed={c}>Notifications</Label> <Label collapsed={c}>Notifications</Label>
</NotificationCenter> </NotificationCenter>
</span>
<span title={c ? (user?.display_name?.trim() || 'Profile') : undefined}>
<UserMenu <UserMenu
auth={auth} auth={auth}
LinkComponent={Link} LinkComponent={Link}
@@ -407,6 +410,7 @@ export default function Sidebar({
> >
<Label collapsed={c}>{user?.display_name?.trim() || 'Profile'}</Label> <Label collapsed={c}>{user?.display_name?.trim() || 'Profile'}</Label>
</UserMenu> </UserMenu>
</span>
</div> </div>
{/* Settings + Collapse */} {/* Settings + Collapse */}