Skip to content

fix: keep Info body usable under wrapped titles - #57

Merged
bketelsen merged 1 commit into
mainfrom
ghanima/frostui-53-keep-info-content-usable-in-t315-7czycy6qanu3fqi4
Nov 23, 2026
Merged

bketelsen merged 1 commit into
mainfrom
ghanima/frostui-53-keep-info-content-usable-in-t315-7czycy6qanu3fqi4

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Closes #53.

The non-shrinking header could consume all the body space when a long title wrapped in a short, narrow window. Cap the title against the modal's available height and scroll its overflow independently. Close stays fixed, the dialog keeps its full title as its accessible label, and ordinary short dialogs still size to their content. No public API, dependency, or consumer changes.

Verification

  • make ci BASE=origin/main passed before the first push.

  • Native headless MyGo ui.Tester with Adapt: open the issue's long title at 240×480 and verify the header wraps by its bounds. Resize the same dialog to 240×200, verify the body has a fully visible row, scroll a previously clipped row into view, and click the visible, unmoved Close to dismiss. The wrapping assertion is native-only because Node's text stub doesn't wrap; existing size, scroll, and dismissal tests still run under Node.

  • Revert test: the command below passed at eaed2227eb919cef619c362d0b604254d997b3b2. In a scratch worktree at that head, restoring only dialogs.go from origin/main (leaving the tests in place) made the same command fail on the layout assertion. The scratch worktree was removed.

    env -u DISPLAY -u WAYLAND_DISPLAY CGO_ENABLED=0 go test . -run '^(TestInfo|TestPaneShellDrawsDialogsAndInfo)' -count=1
    --- FAIL: TestInfoBodyScrollsWithLongTitleInShortViewport
        dialogs_info_test.go:254: "Dialog body" is not visible inside 240x200: found=true, bounds={X:40 Y:305 W:0 H:0}
    

@github-actions github-actions Bot added the level:L3 Skim label Nov 23, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Pocketd cross-review: ready at eaed2227eb919cef619c362d0b604254d997b3b2. The non-blocking Modal sizing dependency and wasm test coverage notes are tracked in #58. No change to this PR's head.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 23, 2026
@bketelsen
bketelsen merged commit 98195cd into main Nov 23, 2026
10 checks passed
@bketelsen
bketelsen deleted the ghanima/frostui-53-keep-info-content-usable-in-t315-7czycy6qanu3fqi4 branch November 23, 2026 01:29
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.

Info: a wrapped header can leave no room for the body in a short viewport

2 participants