Repository navigation
fix: scroll overflowing info dialog bodies - #51
Merged
Merged
Conversation
bketelsen
approved these changes
Nov 20, 2026
This was referenced Nov 23, 2026
bketelsen
pushed a commit
to frostyard/frostmail
that referenced
this pull request
Nov 23, 2026
frostui v0.10.1 scrolls an Info dialog's body under its fixed title and Close button (frostyard/frostui#51, #57). On a 1280×800 screen the Keyboard Shortcuts list is taller than the window, and on v0.10.0 the Edit, Go to and View groups were below its foot with no way to reach them. TestShortcutsDialogScrollsAt1280x800 opens the dialog at 1280×800 and scrolls it with the mouse wheel until each of those groups and the last row are inside the dialog; it fails on v0.10.0. go-sources.json, AGENTS.md and docs/specs/ui.md follow the bump. Fixes #356 Co-authored-by: frostyard-machines <[email protected]>
4 tasks done
bketelsen
pushed a commit
to frostyard/frostnotes
that referenced
this pull request
Nov 23, 2026
frostui v0.10.1 scrolls an Info dialog's body under its fixed title and Close button (frostyard/frostui#51, #57). The Conflicts dialog lists one row per flagged file with no height of its own: on v0.10.0 a long list ran below a 1280x800 window, out of reach. TestConflictsDialogScrollsAt1280x800 opens it with 40 conflicts and scrolls with the wheel until the last file is in view below a fixed Close; on v0.10.0 the dialog is 1632 DIPs tall and the test fails. TestShortcutsDialogScrollsAt1280x800 checks that Keyboard shortcuts, which keeps its own 420-DIP scroll box, still scrolls to its last row inside the new scrolling body. About is short and needs no check. go-sources.json (make flatpak-sources) and AGENTS.md follow the bump. Co-authored-by: frostyard-machines <[email protected]>
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.
Summary
Keep
Infocontent within the modal viewport, with only the body scrolling and the title and Close control fixed. Short About and shortcuts bodies retain their natural height. The change adds no state, handles, dependency, or public signature and leaves other dialog types unchanged.Consumer report: frostyard/frostmail#356. This PR fixes the shared overflow only. Frostmail owns its command titles; their correction, a library release, and consumer dependency bumps remain separate.
Evidence
Before the fix, 60 shortcuts in 6 groups at both 1280×800 and 640×480 left the final row at y=2060 with zero visible width/height. Scrolling did not move it. With the fix the final row is fully visible after scrolling, and Close stays visible and works.
Regression coverage in
dialogs_info_test.goincludes empty and nil bodies, single shortcuts, short About, both themes, viewport resize including 360×480, full final title/key visibility, scrolling back, fixed working Close, Escape/backdrop dismissal, focus confinement, and focus return. Geometry assertions run on native and js/wasm renderers.Checks
mise exec [email protected] -- make verify— PASS.mise exec [email protected] -- make ci BASE=origin/main— PASS, including wasm, race, and all cross-build/vet targets.env -u DISPLAY -u WAYLAND_DISPLAY CGO_ENABLED=0 go test . -run '^(TestInfo|TestDialogsShowShortcutsAndAbout)' -count=1— PASS.dialogs.gofrom its parent, kept tests unchanged;env -u DISPLAY -u WAYLAND_DISPLAY CGO_ENABLED=0 go test . -run '^TestInfoLongBodyScrollsAndResizes$' -count=1— FAIL in all 4 initial viewport/theme cases because Command 59 remains invisible after scrolling. Scratch worktree removed.Cross-review and limits
openai/gpt-6.1-sol.github-copilot/claude-sonnet-5.5(1 review, no re-reviews).55bcc19baa44afd38de1bd644175ac2022391f12(frostyard/frostui:main).520b85fbaf0bf55d618d91084e971d74917288f4.team_wait_for_cireturned PASS at this head. All CI checks succeeded. The matched risk level is the defaultlevel:L3; no high-risk path is changed.No native desktop session, release, deployment, or consumer bump is included. Human review and merge remain required.