From 9b4232593eb02f15a2b41483b6a707e80a5050b3 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Mon, 11 May 2026 16:27:05 -0700 Subject: [PATCH 1/2] fix(web): docs/blog scroll behavior + breakpoint alignment - Introduce --header-h CSS var (4.5rem) and html scroll-padding-top so anchor jumps land below the header instead of flush to the top. - ReadingLayout: switch sticky asides from hardcoded top-16/h-4rem to var(--header-h) so the sidebars don't snap 8-9px high under the actual header height. - DocsTOC: align nav breakpoint with ReadingLayout's right-aside reveal (lg:block instead of xl:block). Previously the aside appeared with its border-l from 1024-1279px but the TOC inside stayed hidden until 1280px, producing an empty bordered rail. - CreamSurface: drop redundant min-h-screen (main.flex-1 already provides full-height) and use h-full for the inverse to keep parity. Prevents short pages from forcing extra blank space below the footer. - PostMeta avatar normalized to 28px to match PostHeader's mobile byline, so the same image isn't sized differently across the desktop/mobile boundary. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/app/components/CreamSurface.tsx | 2 +- apps/web/app/components/ReadingLayout.tsx | 4 ++-- apps/web/app/components/blog/PostMeta.tsx | 4 ++-- apps/web/app/components/docs/DocsTOC.tsx | 2 +- apps/web/app/globals.css | 7 +++++++ 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/apps/web/app/components/CreamSurface.tsx b/apps/web/app/components/CreamSurface.tsx index 3c0285cd..460e9fd2 100644 --- a/apps/web/app/components/CreamSurface.tsx +++ b/apps/web/app/components/CreamSurface.tsx @@ -6,7 +6,7 @@ import type { ReactNode } from "react" export function CreamSurface({ children }: { readonly children: ReactNode }) { const isLanding = usePathname() === "/" return ( -
+
{children}
) diff --git a/apps/web/app/components/ReadingLayout.tsx b/apps/web/app/components/ReadingLayout.tsx index 71b605d5..867f5179 100644 --- a/apps/web/app/components/ReadingLayout.tsx +++ b/apps/web/app/components/ReadingLayout.tsx @@ -9,13 +9,13 @@ interface ReadingLayoutProps { export function ReadingLayout({ left, right, children }: ReadingLayoutProps) { return (
-
diff --git a/apps/web/app/components/blog/PostMeta.tsx b/apps/web/app/components/blog/PostMeta.tsx index fef1fd1e..e434ce2e 100644 --- a/apps/web/app/components/blog/PostMeta.tsx +++ b/apps/web/app/components/blog/PostMeta.tsx @@ -51,8 +51,8 @@ export function PostMeta({ post }: { readonly post: Post }) { {author.name} +