Studio: stop hidden source badges from inflating chat scroll height (#5822)
The SourcesGroup measurement container renders every citation badge off-screen with `invisible absolute` so we can measure how many fit in two rows. Absolute descendants still contribute to the parent's scrollable overflow region, so long source lists added hundreds of pixels of phantom scroll space below the assistant message that the user could scroll into. Wrap the measurement container in an absolute, `h-0`, `overflow-hidden` box so the off-screen pills are clipped out of the scrollable overflow region. Measurement still works because offsetTop is read relative to the positioned wrapper.
D
Daniel Han committed
b66d35b425d3a78343f73076bc51bf590703f277
Parent: 4b6a733
Committed by GitHub <noreply@github.com>
on 5/31/2026, 12:55:00 PM