Skip to content

fix: channel message go to click from soup not working#527

Merged
gbirman merged 2 commits intomainfrom
gab/m-5359-channel-message-go-to-click-from-soup-not-working
Dec 10, 2025
Merged

fix: channel message go to click from soup not working#527
gbirman merged 2 commits intomainfrom
gab/m-5359-channel-message-go-to-click-from-soup-not-working

Conversation

@gbirman
Copy link
Copy Markdown
Contributor

@gbirman gbirman commented Dec 9, 2025

Summary

there is some complicated interplay between the message list height and the virtualizer's own inner height estimations. my guess is the image preview suspense loading affects things, but even if you try to listen for size changes the virtualizer doesn't update its internals.

this fix uses scrollIntoView api on the target element. i also ensure that the active target highlight starts after the element is scrolled into view so that it doesn't flash too quickly for an older message. also do a bunch of code cleanup.

Screenshots, GIFs, and Videos

CleanShot.2025-12-09.at.17.56.56.mp4

@gbirman gbirman requested a review from a team as a code owner December 9, 2025 22:51
@linear
Copy link
Copy Markdown

linear bot commented Dec 9, 2025

// });
// }
// })
// );
Copy link
Copy Markdown
Contributor Author

@gbirman gbirman Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im commenting this (user typing scroll to bottom) out cuz i think it's annoying, we can leave in though. but i would use the scroll bottom api with force bottom. lmk

@gbirman gbirman merged commit 4f29f22 into main Dec 10, 2025
19 checks passed
@gbirman gbirman deleted the gab/m-5359-channel-message-go-to-click-from-soup-not-working branch December 10, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants