Skip to content

fix: scroll overflowing info dialog bodies - #51

Merged
bketelsen merged 1 commit into
mainfrom
ghanima/072ef90b
Nov 20, 2026
Merged

bketelsen merged 1 commit into
mainfrom
ghanima/072ef90b

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep Info content 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.go includes 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.
  • Independent targeted tests: env -u DISPLAY -u WAYLAND_DISPLAY CGO_ENABLED=0 go test . -run '^(TestInfo|TestDialogsShowShortcutsAndAbout)' -count=1 — PASS.
  • Revert proof: detached scratch worktree at the PR head; restored only dialogs.go from 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

  • Coder: openai/gpt-6.1-sol.
  • Reviewer: github-copilot/claude-sonnet-5.5 (1 review, no re-reviews).
  • Base and merge-base: 55bcc19baa44afd38de1bd644175ac2022391f12 (frostyard/frostui:main).
  • Reviewed head: 520b85fbaf0bf55d618d91084e971d74917288f4.
  • Verdict: Ready. Blocking: none. All 4 changed files reviewed; nothing excluded. The parent independently reviewed the diff and ran the checks above.
  • Low, non-blocking observations concern the body-layout documentation, README placement, pinned clipping assertion, and possible long-header coverage. They are recorded in #52, with Ghanima as owner and acceptance criteria. The exact clipping assertion is valid on the pinned dependency; no production defect was found. No change was made after the reviewed head.
  • team_wait_for_ci returned PASS at this head. All CI checks succeeded. The matched risk level is the default level:L3; no high-risk path is changed.

No native desktop session, release, deployment, or consumer bump is included. Human review and merge remain required.

@github-actions github-actions Bot added the level:L3 Skim label Nov 20, 2026
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 20, 2026
@bketelsen
bketelsen merged commit 807d0a4 into main Nov 20, 2026
11 checks passed
@bketelsen
bketelsen deleted the ghanima/072ef90b branch November 20, 2026 17:21
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants