Skip to content

Commit 1f7a0df

Browse files
m-hulbertclaude
andcommitted
fixup! feat(nav): restructure layout with ProductBar and full-width borders
Restore responsive padding on content area, add left padding for sidebar breathing room, centre content with mx-auto, replace right sidebar box-shadow with border-l, and set right sidebar to w-60. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6c2b5a3 commit 1f7a0df

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/Layout/Layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,22 @@ const Layout: React.FC<LayoutProps> = ({ children, pageContext }) => {
4949
<Header />
5050
{showProductBar && <ProductBar className="hidden md:block" />}
5151
<div className="max-w-[1856px] mx-auto pt-16">
52-
<div className={cn('flex px-8', !leftSidebar && 'md:px-12')}>
52+
<div className={cn('flex md:pl-4 lg:pl-6', !leftSidebar && 'md:px-12')}>
5353
<LeftSidebar className={cn(!leftSidebar && 'md:hidden')} />
5454
<Container
5555
as="main"
5656
className={cn(
57-
'flex-1 min-w-0',
57+
'flex-1 min-w-0 px-6 sm:px-8 md:px-10 lg:px-16',
5858
{ 'max-w-[860px] mx-auto': !isRedocPage && leftSidebar },
5959
{ 'overflow-x-clip': !isRedocPage },
6060
)}
6161
>
6262
{leftSidebar ? (
6363
<div className="flex items-center justify-between mt-8 gap-4">
6464
<Breadcrumbs />
65-
<CopyForLLM />
65+
<div className="hidden md:flex shrink-0">
66+
<CopyForLLM />
67+
</div>
6668
</div>
6769
) : null}
6870
{children}

src/components/Layout/RightSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const RightSidebar = () => {
261261

262262
return (
263263
<div
264-
className="hidden md:block sticky w-[312px] shrink-0"
264+
className="hidden md:block sticky w-60 shrink-0"
265265
style={{
266266
top: `${stickyTopPx}px`,
267267
height: componentMaxHeight(HEADER_HEIGHT, HEADER_BOTTOM_MARGIN, 32),
@@ -278,7 +278,7 @@ const RightSidebar = () => {
278278
<p className="ui-text-label4 font-semibold text-neutral-1300 dark:text-neutral-000 mb-3">On this page</p>
279279
<div
280280
className={cn(
281-
'flex shadow-[0.5px_0px_var(--color-neutral-000)_inset,1.5px_0px_var(--color-neutral-300)_inset]',
281+
'flex border-l border-neutral-300 dark:border-neutral-1000',
282282
isStepped && 'ml-2',
283283
)}
284284
>

0 commit comments

Comments
 (0)