mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 08:27:04 +00:00
Two related polish fixes on the collapsed sidebar: 1. The hover/active highlight on each nav item used to span the full sidebar width (minus 8dp outer padding), producing ~12dp of empty highlight either side of the 24dp icon. Now the highlight clips to a 40dp square centered on the icon (24dp icon + 8dp padding on each side), so the ripple sits tight against the glyph. 2. When the sidebar is collapsed, the label was already supplied as `contentDescription` for screen readers but had no visual affordance. Added a `TooltipArea` that surfaces the label on hover (Surface + inverseSurface tonal style, matching the existing TorStatusIndicator tooltip pattern), so mouse users can also see what each icon means without expanding the sidebar. Applied to both `SidebarNavItem` and `SidebarFeedItem` since both suffer the same issue. Expanded behaviour is unchanged.