Stop the list scrolling when it already fits

Fixkamo-internal
Shipped
August 9, 2026 at 8:47 PM UTC
Author
kamo
Commit
1b60f3c

Three things added height that was not content, so a list short enough to fit still got a scrollbar: - the infinite-scroll sentinel was rendered unconditionally, leaving a permanent extra pixel under the last row — enough on its own to tip a list that fits exactly. It now exists only while there is another page to fetch, which is precisely when scrolling is legitimate. - the "All N contacts" footer sat under every list, costing ~48px whether the list was 3 rows or 300. It is worth saying after a long scroll, so it now appears from 20 rows up; the count strip states the total either way. - the empty state carried EmptyState's 200px floor plus its own padding inside a p:3 wrapper, ~350px of forced height that scrolled a column with nothing in it. It fills the available area instead.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing