Repository navigation
Read sent drawing scroll from the thread transcript - #3005
Merged
Merged
Conversation
The send layout in #2985 moved the long comment scrollport from its first message to the thread transcript. The drawing test still demanded an inner text scrollbar, so it failed even though the reference follows the text and stays available. Read retained scroll from the transcript while preserving the reference order and resized-viewport assertions.
leaf-agent
added a commit
that referenced
this pull request
Oct 15, 2026
#2997 made stylesheet access to Leaf controls explicit. That left PhotoSwipe's runtime stylesheet, which Leaf appends inside its image dialog, subject to page CSS filtering. Its positioning rules no longer reached the viewer, so the fitted image appeared below the stage. Mark that sheet `data-controls` before attaching it. Browser probes that deliberately style Leaf controls now declare the same access, preserving their original assertions. This addresses 16 failures in the [main CI run](https://github.com/max-sixty/leaf/actions/runs/38700868252). The two other failures in that run were separately repaired by #3003 and #3005; their current tests pass. The 16 affected browser cases pass locally, including both online and exported image previews, compositor frames, the corpus stylesheet-order gate, and control styling. `pnpm run check`, 487 runtime tests, and changed-file pre-commit checks pass. Co-authored-by: leaf-agent <[email protected]>
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.
The sent-drawing browser case now reads its retained scroll from the thread transcript. #2985 intentionally moved a long sent comment's scrollport from the first message to that transcript, but this case still required an inner
.lf-msg-textscrollbar and failed on the new layout.The test continues to check the drawing-reference behavior introduced by #2136: the reference follows the comment text, the message body does not clip it, and it remains inside the visible transcript after a long card is resized. Its short phone and long desktop variants both pass with the transcript as the scrollport.
Verification: both focused browser variants pass; Ruff format and
git diff --checkpass. The long variant failed at the old inner-scroll assertion before this change.