Skip to content

Commit

Permalink
Merge pull request #1015 from nature-of-code/fix/layout
Browse files Browse the repository at this point in the history
Fix `<main>` overflow issue at specific screen widths
  • Loading branch information
jasongao97 authored Sep 12, 2024
2 parents ceb19c8 + ecfee3e commit 93c3c12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/SideNavLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default function SideNavLayout(props) {
<SideNav activeChapter={title && title.split('. ')[0]} toc={toc} />
</aside>

<main className="prose mx-auto max-w-[50em] pb-8">{children}</main>
<main className="prose mx-auto min-w-0 max-w-[50em] pb-8">
{children}
</main>
</div>
</BaseLayout>
);
Expand Down

0 comments on commit 93c3c12

Please sign in to comment.