Skip to content

feat(ui): center taller desktop dialogs nearer the middle - #2234

Merged
oneo-me merged 2 commits into
mainfrom
agiox/center-dialog-positioning
Nov 23, 2026
Merged

oneo-me merged 2 commits into
mainfrom
agiox/center-dialog-positioning

Conversation

@oneo-me

@oneo-me oneo-me commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

A desktop ui.Dialog always sat with a third of the spare height above it, so a dialog that nearly fills the window, such as a settings dialog, looked pushed up against the top.

Its spacers now measure the spare height and part it by how much of the room within the inset the dialog takes: a third above a short dialog, as before, rising smoothly to a half, centering one that fills the window. The second layout happens in the same batch, so nothing jumps as it opens.

  • TestDialogPlacement checks short, half-height and full-height dialogs.

🤖 Generated with Claude Code

@github-actions github-actions Bot added size/S enhancement New feature or request documentation Improvements or additions to documentation ui and removed enhancement New feature or request labels Nov 23, 2026
@oneo-me
oneo-me enabled auto-merge (rebase) November 23, 2026 11:27
@oneo-me oneo-me self-assigned this Nov 23, 2026
@oneo-me
oneo-me merged commit 7d296b7 into main Nov 23, 2026
24 of 25 checks passed
@oneo-me
oneo-me deleted the agiox/center-dialog-positioning branch November 23, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request size/S ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant