Repository navigation
use consistent dialog sizes - #128
Merged
Merged
Conversation
…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).
Member
Author
|
pushed e42d004: long content scrolls inside the dialog now
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
|
PR test build retired — merged into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
port of desktop's consistent dialog sizes (anomalyco/opencode#63432)
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 withwidgets::sized/sized_modalDialogSizegetsnormal,largeandx-large;smallandmediumstay 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 nowscripts/dialog-size.shis the lint rule: it flags raw dialog widths/heights and window-derived sizes in files that draw a dialogthe regenerated
opencode.d.luaualso picks up anfadeIndoc line that was already out of date on dev— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊