Repository navigation
fix: stand a comment's card in the box that scrolls its row - #4806
Merged
Merged
Conversation
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
leaf-agent
approved these changes
Oct 31, 2026
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.
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.
commentAttachmentbounded both surfaces by the innermost reading region around the pointed row, whether or not that region scrolled, while it sentmakeRoomto 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 wasoverflow: autoat 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 andmakeRoom; 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_subjectcovers 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_panefails under the target rule, andtest_a_card_stays_in_a_pane_whose_rows_all_showunder 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.