Skip to content

Collapse the desktop sidebar to a rail of icons - #22

Merged
Fazmin merged 1 commit into
mainfrom
feat/collapsible-sidebar
Nov 19, 2026
Merged

Fazmin merged 1 commit into
mainfrom
feat/collapsible-sidebar

Conversation

@Fazmin

@Fazmin Fazmin commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Gives the page more room by collapsing the sidebar to a 52px rail of icons.

How it works

  • A new button at the top left of the page header, or ⌘\ / Ctrl+\, toggles it.
  • While collapsed, each section's name becomes its tooltip and accessible name. The section badges stay on the icons, and the Quick find button leaves the tab order (⌘K / Ctrl+K still works).
  • The choice is saved in localStorage and applied in the early theme script, before the first paint, so a collapsed sidebar doesn't flash open on start.
  • The README's first-run section mentions it.

Checked in headless Chromium, with the app backend stubbed:

  • Toggling with the button and with the shortcut both work.
  • Switching sections while collapsed works.
  • The state survives a reload.
  • Tooltips and ARIA labels are added and removed with the toggle.
  • Light and dark themes look right, and so does a narrow window.
  • The sidebar code adds no script errors compared with main.

This was not checked in the app's own WebKit window.

The header button or Cmd/Ctrl+\ collapses the sidebar to a 52px rail so
the page gets the width. Each section's name becomes its tooltip and
accessible name while collapsed, and the choice is remembered on the
machine and applied before the first paint, so there is no flash on
start.
@Fazmin
Fazmin merged commit b08a795 into main Nov 19, 2026
5 checks passed
@Fazmin
Fazmin deleted the feat/collapsible-sidebar branch November 19, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant