Skip to content

Read sent drawing scroll from the thread transcript - #3005

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38662520639-drawing-transcript
Oct 15, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38662520639-drawing-transcript

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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-text scrollbar 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 --check pass. The long variant failed at the old inner-scroll assertion before this change.

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
leaf-agent merged commit 1ffe1c9 into main Oct 15, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38662520639-drawing-transcript branch October 15, 2026 08:14
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]>
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.

1 participant