Skip to content

app: board density default follows live window width#33

Merged
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/board-density-live
Jul 3, 2026
Merged

app: board density default follows live window width#33
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/board-density-live

Conversation

@alejandro-nexcade

Copy link
Copy Markdown
Collaborator

What

Follow-up to #31 from live testing: the D1 triage table never appeared by default on wide screens. loadDensity() sampled window.innerWidth once at mount, but the Tauri window opens at its configured 1200×800 (< the 1400px breakpoint) and gets maximized after React mounts — so the session was locked to the cards grid.

Now the width-driven default is a live media query (min-width: 1400px): maximize the window and the table appears; an explicit density toggle is persisted and always wins (stored preference is width-free, so it can't be poisoned by mount-time size either).

Verified

tsc clean · vitest 385 (+1: stored-preference parsing) · vite build ok. Existing pure density tests unchanged.

🤖 Generated with Claude Code

The table-vs-cards default sampled window.innerWidth once in a useState
initializer, but the Tauri window opens at its configured 1200px and is
maximized after mount — so wide screens were locked to cards for the
whole session and the D1 triage table never appeared by default. The
width default is now a live media query at the 1400px breakpoint; an
explicit toggle is persisted and always wins.
@alejandro-nexcade alejandro-nexcade merged commit aa71a54 into main Jul 3, 2026
2 checks passed
@alejandro-nexcade alejandro-nexcade deleted the alejandro/board-density-live branch July 3, 2026 10:38
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.

2 participants