Skip to content

Fix collapsed user message height jump on mount#206

Merged
SDSLeon merged 1 commit into
masterfrom
lightcode/bold-zebra-786b33c9
Jun 19, 2026
Merged

Fix collapsed user message height jump on mount#206
SDSLeon merged 1 commit into
masterfrom
lightcode/bold-zebra-786b33c9

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Jun 19, 2026

Copy link
Copy Markdown
Owner
  • Long user messages briefly rendered at full height before collapsing, so the chat virtualizer cached an oversized row and then shrank it on the next frame
  • That size delta triggered scroll compensation and stuck the view at the bottom, blocking scroll-up past the message
  • Apply the 4-line clamp on first paint so collapsed height is stable before overflow is measured
  • Defer the fade gradient until overflow is confirmed so short messages do not flash a mask
  • Bugfix for chat scroll behavior when mounting or remounting collapsed user messages

- Apply line clamp on first paint before overflow measurement
- Defer fade mask until overflow is confirmed
- Lift clamp for short messages after first measurement pass
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
lightcode-landing Skipped Skipped Jun 19, 2026 4:57am

@SDSLeon SDSLeon merged commit 45fc9d2 into master Jun 19, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/bold-zebra-786b33c9 branch June 19, 2026 05:02
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