Skip to content

use consistent dialog sizes - #128

Merged
thdxr merged 2 commits into
devfrom
dialog-sizes
Nov 14, 2026
Merged

thdxr merged 2 commits into
devfrom
dialog-sizes

Conversation

@thdxr

@thdxr thdxr commented Nov 14, 2026

Copy link
Copy Markdown
Member

port of desktop's consistent dialog sizes (anomalyco/opencode#63432)

  • every dialog now uses one of three presets from session_view::dialog::DialogSize: normal 480, large 880 × 600, x-large 1040 × 680, each clamped to the window. the app puts a card at one with widgets::sized / sized_modal
  • large: command palette, project switcher, fork, jump to message, mcp list, model picker, directory picker, execute details (they grow down from a kept top edge), and manage models (fixed height)
  • normal: connect provider (fit + anchored, so the top edge stays put between steps), chatgpt welcome (was 390), usage (was 512), mcp sign-in, server, delete confirmations, terminal paste, move recovery, plugin trust (was 420, no desktop counterpart)
  • plugin DialogSize gets normal, large and x-large; small and medium stay as deprecated aliases of normal. large plugin dialogs are their size's height on bg-base with 12 pt corners like desktop; what's new fills its 880 × 600 now
  • scripts/dialog-size.sh is the lint rule: it flags raw dialog widths/heights and window-derived sizes in files that draw a dialog

the regenerated opencode.d.luau also picks up an fadeIn doc line that was already out of date on dev

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

…mal 480, large 880 × 600, x-large 1040 × 680; anomalyco/opencode#63432). session_view::dialog::DialogSize holds them, clamped to the window, and widgets::sized / sized_modal put a card at one. The command palette, project switcher, fork, jump to message, MCP list, model picker, directory picker and execute details are large and grow down from a kept top edge; Manage models is large; connect provider is normal, fitting each step under a fixed top edge so a step only moves the bottom; the ChatGPT welcome (390), usage (512), sign-ins, confirmations and forms are normal, and so is the plugin trust prompt (420), which Desktop doesn't have. Plugins pick normal, large or x-large (small and medium stay as deprecated aliases of normal); large plugin dialogs are their size's height on bg-base with 12 pt corners, and What's new fills its 880 × 600. scripts/dialog-size.sh flags a dialog that sizes itself.
…onnect step scrolls in the dialog past the normal height, as Desktop's provider-connect-content does (overflow-y-auto), not only the Console's: a long error or form no longer runs under the dialog's edge; the model list scrolls between its description and Continue. MCP sign-in, usage and a plugin's normal dialog scroll their content past their height (dialog-content, DialogBody), and usage keeps to the window less 32. New scenes: connect-models-long (25 models), connect-failed-long, mcp-sign-in-long, usage, plugin-dialog (the updater's beta notes, 30 changes).
@thdxr

thdxr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

pushed e42d004: long content scrolls inside the dialog now

  • connect: every step scrolls past the normal height like desktop's provider-connect-content (overflow-y-auto), not just the console ones. the model list scrolls between the description and continue, and continue stays put
  • mcp sign-in, usage and normal plugin dialogs scroll their content past their height (desktop's dialog-content / plugin DialogBody). usage is also capped at the window less 32 now
  • new scenes to check it: connect-models-long (25 models), connect-failed-long, mcp-sign-in-long, usage, plugin-dialog (updater beta notes with 30 changes)

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@thdxr
thdxr merged commit 15fe11c into dev Nov 14, 2026
5 checks passed
@thdxr
thdxr deleted the dialog-sizes branch November 14, 2026 22:23
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

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