Sidebar: watchlist overlaps the Help / API docs links when the viewport is short
Bug
With a watchlist of ~10+ symbols, the "Watching" list in the sidebar is drawn on top of the Help / API docs / About / Terms links when the browser viewport is not tall enough (e.g. a laptop screen with 125–150% display scaling). On a taller monitor the same page renders fine, and with only a few symbols it doesn't happen either.
Steps to reproduce
- Add ~12 symbols to the watchlist.
- Open
/dashboardin a window around 700–800px tall (or zoom the page in). - The watchlist entries overflow their block and render over the resource links below.
Cause
In components/shell/Sidebar.tsx the "Watching" block is a flex child with min-h-0,
so the column is allowed to shrink it below its content height, but it has no overflow
rule. The box shrinks while the list keeps painting outside it, on top of the next
sibling.
<div className="flex flex-col gap-1 min-h-0">
<p className="side-label">Watching</p>Suggested fix
Let that block scroll on its own:
-<div className="flex flex-col gap-1 min-h-0">
+<div className="flex flex-col gap-1 min-h-0 overflow-y-auto">Tested locally on 15.5.26 (self-hosted, next dev): the list scrolls inside its slot and
the resource links, sponsor card and profile row stay in place, on both the short and
the tall screen.
Source: Open-Dev-Society/OpenStock