Skip to content

Let the stash review dialog scale with large windows - #83

Merged
danipen merged 1 commit into
mainfrom
fix-stash-dialog-size
Jul 23, 2026
Merged

Let the stash review dialog scale with large windows#83
danipen merged 1 commit into
mainfrom
fix-stash-dialog-size

Conversation

@danipen

@danipen danipen commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Problem

The stash review dialog was hard-capped at 1180×760px. On small windows the UX was fine, but on large screens the dialog stopped growing while the window kept going — plenty of free space around it, yet file names stayed truncated and the split diff cramped.

Fix

Size the dialog relative to the viewport instead:

width: min(94vw, 2000px);
height: min(90vh, 1300px);

It now grows with the window, so big screens get full file paths and a wide split diff. The caps only kick in on very large displays, where an edge-to-edge dialog reads worse than a generous centered one.

Verified

Drove the real app over CDP (playwright-cli) with a multi-file stash and screenshotted the dialog at 2400×1300 (fills the window, full paths visible) and 1200×800 (unchanged comfortable inset). Lint, typecheck and tests all green.

🤖 Generated with Claude Code

The dialog was hard-capped at 1180x760, leaving big screens full of dead
space while file names and diffs stayed cramped. Size it relative to the
viewport (94vw x 90vh) so it grows with the window, with generous caps so
it stays a centered dialog on very large displays.
@danipen
danipen merged commit 5877b53 into main Jul 23, 2026
9 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