Skip to content

Let wt-merge's phone film scroll its pane instead of clipping its stage - #3714

Merged
max-sixty merged 1 commit into
mainfrom
agent-a7175a0bf3da2f85e
Oct 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-a7175a0bf3da2f85e

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

At 800×720, wt-merge's film now shows its whole phone layout. Its pane scrolls down to the terminal, which ends above Leaf's panel. Before, the drawing was cut off at "+3 files", and the worktrees, latest command and terminal below it were clipped where no scroll could reach them. This follows #3711, whose pane survey turned it up.

Cause. The cause is the example's own layout for its film, not the film widget's sizing or the workspace's pane rules. At 800×720, the film's pane (two thirds of the window) is narrow enough for the film's phone layout, while the workspace still fills the window. examples/wt-merge.html styles lf-merge-film as a grid with auto rows in that full-height pane. When the rows don't fit, CSS grid shrinks them toward their minimum. The stage clips its content (overflow: hidden), so its minimum height is zero: it got 252px of its 587px, and the rest was hidden. The pane's scroller (the film element, overflow: auto) never overflowed, so it had nothing to scroll.

Fix. grid-auto-rows: max-content keeps each row at its content's height, so the film overflows its pane and the pane scrolls.

Checks. I measured before in Chrome, and after in Chrome and Firefox:

800×720 before 800×720 after 1280×720
stage height / content 252 / 587px 587 / 587px 335 / 335px, unchanged
film pane scroll height / view 680 / 680 (no scroll) 1015 / 680 680 / 680, unchanged
terminal bottom, film scrolled to end 959 (clipped) 624 n/a
top of the panel's row 662 662 662

After the fix, Firefox matches Chrome to within 2px. The 1280×720 screenshots before and after are byte-identical. The render check on wt-merge passes with the same two pieces of drawing advice as before.

A new test, test_merge_film_shows_its_whole_phone_stage_in_a_laptop_height_pane, reads the 800×720 film scrolled to its end. It checks that nothing is clipped in the stage and that the terminal ends above the panel. Without the fix it fails with 335px clipped. The merge-film tests pass (7, the new one included).

This was written by Claude Code on behalf of max-sixty

At 800x720, wt-merge's film pane is narrow enough for the film's phone
layout while the workspace still fills the window. The film is a grid in a
full-height pane, and its auto rows shrank to fit that height. The stage
clips its content (`overflow: hidden`), so its minimum height is zero, and it
gave up 335 of its 587px: the drawing lost its foot, and the worktrees,
latest command and terminal below it were cut off where no scroll could
reach them. The pane itself never overflowed, so it had nothing to scroll.

The cause is the example's own layout for its film, so the fix is there:
`grid-auto-rows: max-content` keeps each row at its content's height, and
the film's pane scrolls to the terminal, which ends above Leaf's panel. At
1280x720 the desktop film fits as before, with identical screenshots.

A new browser test reads the 800x720 film scrolled to its end: nothing
clipped in the stage, and the terminal above the panel. Without the fix
it fails with 335px clipped.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 4660770 into main Oct 23, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-a7175a0bf3da2f85e branch October 23, 2026 07:52
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.

2 participants