Skip to content

Commit 137db6f

Browse files
committed
fix: fix responsiveness of docs
1 parent 24d2330 commit 137db6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/DocsLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const DocsLayout: React.FC<{
1414
...props
1515
}) => {
1616
return (
17-
<div className='max-w-8xl mx-auto px-4 sm:px-6 md:px-8'>
17+
<div className='w-screen px-4 sm:px-6 md:px-8'>
1818
<div className='fixed inset-0 top-[3.8125rem] left-[max(0px,calc(50%-45rem))] right-auto z-20 hidden w-64 overflow-y-auto border-r-2 border-r-slate-200 px-7 pb-10 dark:border-slate-700 lg:block'>
1919
<LeftSidebarContent />
2020
</div>
2121
<div className='lg:pl-72'>
22-
<div className='mx-auto max-w-3xl pt-10 xl:ml-0 xl:mr-[15.5rem] xl:max-w-none xl:pr-16'>
22+
<div className='mx-auto max-w-3xl pt-10 xl:ml-0 2xl:ml-[max(0px,calc(60%-45rem))]'>
2323
<main className='relative z-20 mt-8'>{props.children}</main>
2424
<footer className='py-4 px-3 mt-5 border-t-2 border-t-slate-300 dark:border-t-slate-700'>
2525
<Markdown text={footerText} />

0 commit comments

Comments
 (0)