Skip to content

Commit 7844e0a

Browse files
committed
chore: make docs page width align with the header
1 parent 004a8ca commit 7844e0a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/app/[locale]/docs/layout.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ export default function DocLayout({ children }: { children: React.ReactNode }) {
1515
data={sidebar}
1616
expandedList={expandedList}
1717
/>
18-
<div className="container grid grid-cols-12 gap-x-10 pt-8 xl:gap-x-9 lg:gap-x-6 md:mt-6 md:gap-x-5 sm:gap-x-4">
19-
<div
20-
className="sticky top-[144px] col-span-3 h-[calc(100vh-160px)] overflow-hidden
21-
before:absolute before:left-0 before:top-0 before:z-10 before:h-[72px] before:w-full before:bg-docs-sidebar
22-
after:absolute after:bottom-0 after:left-0 after:z-10 after:h-10 after:w-full after:bg-gradient-to-b after:from-transparent after:to-white
23-
md:hidden"
24-
>
25-
<Sidebar data={sidebar} expandedList={expandedList} />
26-
</div>
18+
<div className="mx-auto w-full max-w-[1920px] px-10 sm:px-4">
19+
<div className="grid grid-cols-12 gap-x-10 pt-8 xl:gap-x-9 lg:gap-x-6 md:mt-6 md:gap-x-5 sm:gap-x-4">
20+
<div
21+
className="sticky top-[144px] col-span-3 h-[calc(100vh-160px)] overflow-hidden
22+
before:absolute before:left-0 before:top-0 before:z-10 before:h-[72px] before:w-full before:bg-docs-sidebar
23+
after:absolute after:bottom-0 after:left-0 after:z-10 after:h-10 after:w-full after:bg-gradient-to-b after:from-transparent after:to-white
24+
md:hidden"
25+
>
26+
<Sidebar data={sidebar} expandedList={expandedList} />
27+
</div>
2728

28-
{children}
29+
{children}
30+
</div>
2931
</div>
3032
</>
3133
);

0 commit comments

Comments
 (0)