main · flex-1 min-w-0 overflow-y-auto — PRIMARY SCROLL
Content wrapper: max-w-2xl mx-auto — this constraint keeps posts readable
Layout wireframe
Three-column viewport-locked social media layout. Fixed top nav, scrolling sidebars, center feed with constrained max-width content. The defining feature: feed items are centered with max-w-2xl so they don't stretch uncomfortably wide. Annotations in grey are the real Tailwind values.
Desktop · ≥ lg (1024px+)
header · h-14 · sticky top-0 · never scrolls
main · flex-1 min-w-0 overflow-y-auto — PRIMARY SCROLL
Content wrapper: max-w-2xl mx-auto — this constraint keeps posts readable
Responsive behaviour
Mobile · < md (768px)
Sidebars hidden. Hamburger opens left nav as overlay.
Tablet · md–lg (768–1024px)
Left sidebar: icons only (w-14) or hidden. Right sidebar hidden.
Desktop · ≥ lg (1024px+)
Full three-column layout. Left w-64, center flex-1, right w-80.
Independent scroll regions
The shell is viewport-locked at h-screen overflow-hidden. The page never scrolls as a whole. Instead, three regions scroll independently:
overflow-y-auto on its nav container. Scrolls when navigation items exceed viewport height.
PRIMARY SCROLL REGION — overflow-y-auto on main element. Feed content constrained to max-w-2xl mx-auto.
overflow-y-auto on its container. Widgets and suggestions scroll independently.
sticky top-0 — never scrolls, always visible. This is what makes it a social feed layout rather than a document layout.