Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: header px
dev_wandry4b9fe0fd375d
diff --git a/components/docs/docs-header.tsx b/components/docs/docs-header.tsxindex dd99e2f2..e1c529ce 100644--- a/components/docs/docs-header.tsx+++ b/components/docs/docs-header.tsx@@ -11,25 +11,30 @@ import { NAV_LINKS } from "@/config/site";** The inner container mirrors Fumadocs' centered docs layout* (`--fd-layout-width`) and the logo cell is the width of the sidebar column- * (`--fd-sidebar-width`), so the logo lands over the sidebar, the nav begins+ * (`--fd-sidebar-width`), so the logo sits over the sidebar, the nav begins* exactly at the article column's left edge, and the actions sit at the content* block's right edge. The CSS vars are redeclared here because this header- * renders above (outside) DocsLayout, so its variables aren't in scope. `-ml-4`- * pulls the first nav item's label flush with the article text while its- * ghost-button background bleeds back into the gutter. The Components/Primitives- * switcher lives in the thin `DocsTabsBar` rendered directly below this header.+ * renders above (outside) DocsLayout, so its variables aren't in scope. The logo+ * cell keeps `px-4` at every breakpoint so the logo lands at 16px — flush with+ * the sidebar content's `p-4` and the tab labels below it (rather than hard+ * against the viewport edge once the grid fills the screen). `-ml-4` pulls the+ * first nav item's label flush with the article text while its ghost-button+ * background bleeds back into the gutter. The Components/Primitives switcher+ * lives in the thin `DocsTabsBar` rendered directly below this header.*- * The 1400px / 268px literals mirror fumadocs-ui 16.7 defaults — the docs grid- * sets `[--fd-layout-width:1400px]` and `md:layout:[--fd-sidebar-width:268px]`- * (the non-collapsible sidebar column equals the sidebar width). They must stay- * inline (Tailwind JIT can't read JS constants); if a fumadocs upgrade changes- * those defaults, re-sync the two values below.+ * The 97rem / 268px literals mirror fumadocs-ui 16.7 grid defaults — the docs+ * grid uses `var(--fd-layout-width, 97rem)` and `md:layout:[--fd-sidebar-width:268px]`+ * (the non-collapsible sidebar column equals the sidebar width). Matching the+ * grid's native 97rem (not a narrower 1400px) keeps the chrome and content in one+ * centered block so the logo sits over the sidebar. They must stay inline+ * (Tailwind JIT can't read JS constants); if a fumadocs upgrade changes those+ * defaults, re-sync the two values below.*/export function DocsHeader() {return (<header className="relative z-40 h-16 w-full border-b border-border bg-background/70 backdrop-blur-xl">- <div className="mx-auto flex h-16 w-full max-w-(--fd-layout-width) items-center [--fd-layout-width:1400px] md:[--fd-sidebar-width:268px]">- <div className="flex shrink-0 items-center px-4 md:w-(--fd-sidebar-width) md:px-0">+ <div className="mx-auto flex h-16 w-full max-w-(--fd-layout-width) items-center [--fd-layout-width:97rem] md:[--fd-sidebar-width:268px]">+ <div className="flex shrink-0 items-center px-4 md:w-(--fd-sidebar-width)"><HeaderLogo /></div><div className="flex flex-1 items-center justify-between px-4 md:px-6 xl:px-5">diff --git a/components/docs/docs-shell.tsx b/components/docs/docs-shell.tsxindex 38671623..a0b49d4f 100644--- a/components/docs/docs-shell.tsx+++ b/components/docs/docs-shell.tsx@@ -21,15 +21,15 @@ import { baseOptions } from "@/lib/layout.shared";* are suppressed. The decorative grid scopes a dotted backdrop to the content* column for visual continuity with the landing hero.*- * `containerProps` pins two layout vars on the DocsLayout grid:- * - `--fd-layout-width: 1400px` matches the chrome's width (DocsHeader/DocsTabsBar- * use 1400; the grid otherwise falls back to 97rem). Unifying them makes the- * sidebar's left edge coincide with the chrome's, so the tab bar's tabs line up- * exactly with the sidebar at every viewport width.- * - `--fd-banner-height: 2.75rem` is the sticky `DocsTabsBar` height. fumadocs- * derives `--fd-docs-row-1: var(--fd-banner-height, 0px)` and sticks the sidebar/- * TOC at `top-(--fd-docs-row-1)`, dropping them just below the pinned tab bar- * instead of letting the bar overlap the sidebar top.+ * `containerProps` sets `--fd-banner-height` to the sticky `DocsTabsBar` height+ * (h-11 = 2.75rem). fumadocs derives `--fd-docs-row-1: var(--fd-banner-height, 0px)`+ * and sticks the sidebar/TOC at `top-(--fd-docs-row-1)`, dropping them just below+ * the pinned tab bar instead of letting the bar overlap the sidebar top.+ *+ * The grid's own `--fd-layout-width` is left at the fumadocs default (97rem) — the+ * chrome (DocsHeader/DocsTabsBar) is pinned to the same 97rem so everything shares+ * one centered block. (Forcing a narrower 1400px here only enlarged the side+ * gutters, pushing the sidebar inward.)*/export function DocsShell({componentsTree,@@ -54,9 +54,7 @@ export function DocsShell({searchToggle={{ enabled: true }}themeSwitch={{ enabled: false }}sidebar={{ collapsible: false }}- containerProps={{- className: "[--fd-layout-width:1400px] [--fd-banner-height:2.75rem]",- }}+ containerProps={{ className: "[--fd-banner-height:2.75rem]" }}><div className="relative isolate"><divdiff --git a/components/docs/docs-tabs-bar.tsx b/components/docs/docs-tabs-bar.tsxindex 66876814..3fee0795 100644--- a/components/docs/docs-tabs-bar.tsx+++ b/components/docs/docs-tabs-bar.tsx@@ -14,13 +14,14 @@ import { DocsTabs } from "@/components/docs/docs-tabs";* the sidebar content's left edge. `items-stretch` lets the tabs fill the bar's* height so the active underline lands on its bottom border.*- * The 1400px literal mirrors fumadocs-ui 16.7's docs-grid width, kept in sync- * with `DocsHeader` (Tailwind JIT can't read JS constants).+ * The 97rem literal mirrors fumadocs-ui 16.7's docs-grid default+ * (`var(--fd-layout-width, 97rem)`), so this bar shares the same centered block+ * as the docs content and `DocsHeader` (Tailwind JIT can't read JS constants).*/export function DocsTabsBar() {return (<div className="sticky top-0 z-30 h-11 w-full border-b border-border bg-background/70 backdrop-blur-xl">- <div className="mx-auto flex h-11 w-full max-w-(--fd-layout-width) items-stretch px-4 [--fd-layout-width:1400px]">+ <div className="mx-auto flex h-11 w-full max-w-(--fd-layout-width) items-stretch px-4 [--fd-layout-width:97rem]"><DocsTabs className="-ml-3" /></div></div>