Skip to content

fix: stand a comment's card in the box that scrolls its row - #4806

Merged
max-sixty merged 2 commits into
mainfrom
thread-card-grows-over-media
Oct 31, 2026
Merged

max-sixty merged 2 commits into
mainfrom
thread-card-grows-over-media

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A comment ⌥-clicked into an lf-shot stood its box and its thread card inside the shot's stage, under the pointed row, and capped the card at the room left before the stage's foot. When the agent's answer arrived the card kept its 159px and scrolled its transcript to the end, clipping the answer, while the window had ~400px free below (reproduced in Chromium and Firefox at 1728x999). Words in an lf-pane the page scrolls hit the same cap at the pane's box.

Two causes. commentAttachment bounded both surfaces by the innermost reading region around the pointed row, whether or not that region scrolled, while it sent makeRoom to the box that does scroll the row (effectiveScroller). The two disagree on a region in flow: an lf-pane the page carries capped the card at its own box though the page scrolls it. And lf-shot's stage was overflow: auto at Fit, where it shows every capture whole, so the stylesheet, which reading-regions.js treats as the only reading of scroll behavior, called it a scroller.

Placement now reads one box, scrollerFor(point ?? target), for the boundary, the cut and makeRoom; a card with no target, placed at its margin row, reads the same walk from that row. lf-shot's stage, and each Pair window, clip without scrolling at Fit. At 100% (data-lf-shot-scale) the stage pans sideways, and down only where the shot holds its height; in the page's flow it grows to the capture's height, so the page scrolls it down. The stable gutter keeps the stage's width the same at every scale. module-scroll-and-motion.md now tells package authors to give a region's body a scrolling overflow only on an axis its content can outgrow, since a scrolling body bounds a comment's card.

A comment on a whole screenshot now stands beside it, level with the pointed image, and grows into the window; one on words in a flowing pane stands in the page. A workspace pane, or a bounded block, still holds the card and cuts it at its edges as the row scrolls, whether or not its rows overflow yet.

Rejected: the innermost box with rows to scroll. It fixed both cases but stood a comment in a workspace pane whose rows all show over the pane beside it, and moved an open card when its bounded block began to overflow. Also rejected: the region that scrolls the target, which stood a comment pointed at a row deep in a pane that is itself the target over the pane beside it.

Behavior changed: a comment whose row sits in a region in flow, or in a screenshot in the page's flow at either scale, stands in the box that scrolls that region; such a screenshot at 100% no longer scrolls down, only sideways.

Tests: test_a_card_grows_past_a_region_that_does_not_scroll_its_subject covers a screenshot at Fit and at 100% and the flowing pane, and fails on main. test_a_row_pointed_in_a_scrolling_pane_keeps_its_card_in_the_pane fails under the target rule, and test_a_card_stays_in_a_pane_whose_rows_all_show under the travel rule.

Still capped: a comment on a row inside a short bounded block, or ⌥-clicked into a screenshot at 100% in a box of fixed height, gets a card no taller than that box, since the box does scroll the row.

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

A comment ⌥-clicked into an lf-shot stood its box and its thread card inside
the shot's stage, under the pointed row, and capped the card at the room left
before the stage's foot. When the agent's answer arrived the card kept its
159px and scrolled its transcript to the end, clipping the answer, while the
window had ~400px free below (reproduced in Chromium and Firefox at 1728x999).
Words in an lf-pane the page scrolls hit the same cap at the pane's box.

Two causes. `commentAttachment` bounded both surfaces by the innermost reading
region around the pointed row, whether or not that region scrolled, while it
sent `makeRoom` to the box that does scroll the row (`effectiveScroller`). The
two disagree on a region in flow: an lf-pane the page carries capped the card
at its own box though the page scrolls it. And lf-shot's stage was
`overflow: auto` at Fit, where it shows every capture whole, so the stylesheet,
which reading-regions.js treats as the only reading of scroll behavior, called
it a scroller.

Placement now reads one box, `scrollerFor(point ?? target)`, for the boundary,
the cut and `makeRoom`; a card with no target, placed at its margin row, reads
the same walk from that row. lf-shot's stage, and each Pair window, clip
without scrolling at Fit. At 100% (`data-lf-shot-scale`) the stage pans
sideways, and down only where the shot holds its height; in the page's flow it
grows to the capture's height, so the page scrolls it down. The stable gutter
keeps the stage's width the same at every scale. module-scroll-and-motion.md
now tells package authors to give a region's body a scrolling overflow only on
an axis its content can outgrow, since a scrolling body bounds a comment's
card.

A comment on a whole screenshot now stands beside it, level with the pointed
image, and grows into the window; one on words in a flowing pane stands in
the page. A workspace pane, or a bounded block, still holds the card and cuts
it at its edges as the row scrolls, whether or not its rows overflow yet.

Rejected: the innermost box with rows to scroll. It fixed both cases but
stood a comment in a workspace pane whose rows all show over the pane beside
it, and moved an open card when its bounded block began to overflow. Also
rejected: the region that scrolls the target, which stood a comment pointed at
a row deep in a pane that is itself the target over the pane beside it.

Behavior changed: a comment whose row sits in a region in flow, or in a
screenshot in the page's flow at either scale, stands in the box that scrolls
that region; such a screenshot at 100% no longer scrolls down, only sideways.

Tests: `test_a_card_grows_past_a_region_that_does_not_scroll_its_subject`
covers a screenshot at Fit and at 100% and the flowing pane, and fails on
main. `test_a_row_pointed_in_a_scrolling_pane_keeps_its_card_in_the_pane`
fails under the target rule, and `test_a_card_stays_in_a_pane_whose_rows_all_show`
under the travel rule.

Still capped: a comment on a row inside a short bounded block, or ⌥-clicked
into a screenshot at 100% in a box of fixed height, gets a card no taller than
that box, since the box does scroll the row.
…r-media

# Conflicts:
#	dist/kernel/runtime/bundle-annotation-overlay.js
@max-sixty
max-sixty merged commit b68fc1e into main Oct 31, 2026
4 checks passed
@max-sixty
max-sixty deleted the thread-card-grows-over-media branch October 31, 2026 03: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