Skip to content

feat(web): resizable drawer - #22

Merged
springfall2008 merged 4 commits into
mainfrom
feat/web-drawer-resize
Nov 27, 2026
Merged

springfall2008 merged 4 commits into
mainfrom
feat/web-drawer-resize

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

What

The detail drawer's left edge can be dragged to change its width, in both the Board and Browse tabs.

  • Drag the edge (a blue line shows on hover), or focus it and use ←/→ (32 px a step).
  • Double-click the edge to go back to the default width (40%).
  • The chosen width is kept in localStorage; a blocked store only means it is not remembered.
  • Limits: at least 300 px, and at least 240 px of the page left uncovered; a smaller window shrinks it to fit.
  • The handle is an ARIA separator with aria-valuenow/min/max.

The drawer still overlays the view, as before.

Files

  • web/public/resize.js (new, pure): clampDrawerWidth, parseStoredWidth and the limits.
  • web/public/drawer.js: the handle (pointer capture, keys, double-click, window resize).
  • web/public/style.css: handle styling; the default min-width no longer overrides a chosen width.

Tests

  • Unit tests for the clamp and the stored-width parsing; deno task check and 309 unit tests pass.
  • Checked by hand in the browser.

🤖 Generated with Claude Code

springfall2008 and others added 4 commits November 27, 2026 08:18
The drawer's left edge is a separator: drag it, or focus it and use the
arrow keys. A double-click goes back to the default width. The chosen
width is kept in localStorage and clamped so the drawer stays at least
300 px and leaves 240 px of the page uncovered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	tests/unit/web-public.test.ts
#	web/public/drawer.js
@springfall2008
springfall2008 merged commit 4548c60 into main Nov 27, 2026
2 checks passed
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