From f502f841442b9115b5a21390bbae403a5d5c9dc5 Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Mon, 23 Feb 2026 20:09:44 -0800 Subject: [PATCH] Add Read the Docs link below bottom CTA on homepage (#411) * Add "Read the Docs" link below bottom CTA on homepage * Increase top padding on Read the Docs link * Reduce docs horizontal padding on mobile * Align docs content with header on mobile, increase top padding * Make sticky header fully opaque with subtle bottom border * Fix sticky header on mobile by containing horizontal overflow in content area Wide content (hierarchy diagrams, code blocks) was causing horizontal page scroll, which breaks position:sticky on mobile browsers. Added overflow-x:hidden to the main content area (below the header in DOM) and overflow-x:auto to docs pre blocks so they scroll internally. * Remove bottom border from sticky header --- web/app/components/site-header.tsx | 2 +- web/app/docs/docs-nav.tsx | 6 +++--- web/app/globals.css | 5 +++++ web/app/page.tsx | 8 ++++++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/web/app/components/site-header.tsx b/web/app/components/site-header.tsx index ad7e6202..bc4da923 100644 --- a/web/app/components/site-header.tsx +++ b/web/app/components/site-header.tsx @@ -22,7 +22,7 @@ export function SiteHeader({ return ( <> -
+
{/* Left: logo + section */}
diff --git a/web/app/docs/docs-nav.tsx b/web/app/docs/docs-nav.tsx index 30827c7d..243fac73 100644 --- a/web/app/docs/docs-nav.tsx +++ b/web/app/docs/docs-nav.tsx @@ -11,7 +11,7 @@ export function DocsNav({ children }: { children: React.ReactNode }) { const { open, toggle, close, drawerRef, buttonRef } = useMobileDrawer(); return ( -
+
{/* Mobile menu button */}