Files
hermes-web-ui/packages/client
Albert.Zhou b508de843f feat: add sidebar collapse toggle for compact icon-rail mode (#335)
Add a collapse button at the top of the left sidebar that toggles
between full-width (240px with icons + labels) and compact icon-only
mode (64px). The collapse state is persisted to localStorage and
survives page refreshes.

Changes:
- Add collapse toggle button with chevron icon in sidebar
- Add CSS rules for .sidebar.collapsed: narrow width, centered icons,
  hidden labels/group-headers/footer-text
- Leverage existing store state (sidebarCollapsed, toggleSidebarCollapsed)
  and SCSS variable ($sidebar-collapsed-width) that were already defined
  but never wired up in the template

This significantly improves browsing experience on tablets and
handheld devices by freeing up horizontal space when the full
sidebar is not needed.
2026-05-01 16:05:16 +08:00
..