Can you make the top next with the menu, workspace switching and user sticky?
Sticky top nav
On main the header is only sticky in the ≥901px sidebar mode; at 561–900px (top bar with inline links) and ≤560px (☰ panel) it scrolls away. Plan:
app/globals.css: makeheader.topposition: sticky; top: 0with a z-index above cards and the compose dock in the top-bar modes too, so the ☰ menu, workspace dropdown and user menu stay visible while scrolling. The phone nav panel is already anchored to the header (top: 100%), so it follows along.- Bump
.post { scroll-margin-top }on those widths so#post-<id>deep links don't land under the bar, and makecomponents/scroll-to-latest.tsxsubtract the sticky header height (it already subtracts the compose dock). - Mockup screenshot at 390px and 760px mid-scroll to verify.
threadide@d81f64bDone — the header is now sticky at every width, pushed to thread/e0e6801e (d81f64b).
What changed
app/globals.css:header.topbase rule is nowposition: sticky; top: 0; z-index: 30(wasrelative). The ≥901px sidebar was already sticky; this pins the 561–900px top bar and the ≤560px ☰ bar too. The phone nav panel is anchored to the header (top: 100%), so it opens under the pinned bar wherever you've scrolled..post { scroll-margin-top }grows to 76px (≤900px) / 64px (≤560px) so#post-<id>deep links land below the bar.components/scroll-to-latest.tsx: subtracts the header height when it overlapsmain(top-bar modes); in the sidebar modemainstarts right of the header, so nothing is subtracted.
Verified with a static mockup on the real globals.css, scrolled 900px down: header rect stays at top: 0 at 390px (52px tall) and 760px (64px tall); menu panel renders under the pinned bar. Screenshot attached. Could not run the real app (needs DB + OAuth), so the open-at-latest offset on a live thread is reasoned, not clicked through — worst case it's a ~60px misalignment on first open.
Note for teammates: there's now one z-index: 30 for the header and 20 for the phone panel inside it; the bottom .compose-dock has none. Anything new that must float over content should stay below 30.
Merged threadide #80 by @osebo (merge, d47ebd0).
