Skip to content

Check retained drawing scroll within its sent viewport - #2284

Merged
max-sixty merged 2 commits into
mainfrom
fix/ci-38051185604-drawing-scroll
Oct 10, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/ci-38051185604-drawing-scroll

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The sent drawing card can wrap fewer lines than its draft editor at phone width. In the nightly main CI run, the editor's 1227px scroll offset exceeded the sent text's 921px maximum, so the browser correctly clamped it. The existing check required the impossible absolute offset.

The check now verifies that sending keeps the draft's scroll offset where the sent text can hold it and otherwise lands at the sent text's scroll limit. It continues to check that the drawing reference remains outside the text viewport and visible after resizing. All four desktop/phone and short/scrolled variants pass locally (uv run pytest -q -n 2 tests/test_render_drawing.py::test_sent_drawing_keeps_its_reference_outside_the_retained_text_viewport). This reflects the shared response layout in PR #2252 while keeping the user's reading position under native scroll behavior.

The sent card can wrap fewer lines than the draft after the shared response styles. Keep the user scroll offset when available and accept the browser native clamp when the new text viewport is shorter.
@max-sixty
max-sixty merged commit 04060ae into main Oct 10, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/ci-38051185604-drawing-scroll branch October 10, 2026 20:45
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