diff --git a/app/(docs)/docs/layout.tsx b/app/(docs)/docs/layout.tsx index 6696c78..b6ee836 100644 --- a/app/(docs)/docs/layout.tsx +++ b/app/(docs)/docs/layout.tsx @@ -11,15 +11,17 @@ export default function ComponentLayout({ children: React.ReactNode; }>) { return ( -
-
-
- {/* Sidebar */} -
- -
- {children} -
+
+ {/* Sidebar — fixed to the viewport, left-aligned with the max-w-7xl (80rem) + centered container. On screens narrower than 80rem, left is 0. */} +
+ +
+ + {/* Content area — pl-80 reserves space for the fixed sidebar (w-60) + gap (20). + No independent centering: the parent max-w-7xl is the single source of truth. */} +
+ {children}
); diff --git a/components/SideNav.tsx b/components/SideNav.tsx index 233a243..668412c 100644 --- a/components/SideNav.tsx +++ b/components/SideNav.tsx @@ -13,9 +13,9 @@ export default function SideNav({ setIsOpen }: SideNavProps) { const pathname = usePathname(); return ( -
+