Skip to content

Commit 16d69ab

Browse files
authored
Merge pull request #53 from oasisprotocol/ml/layout-restrict-content-width
Layout: Restrict content width
2 parents 5970244 + 54a54c8 commit 16d69ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ui/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const Layout: FC<PropsWithChildren<LayoutProps>> = ({
5959
const isMobile = useIsMobile()
6060

6161
const layoutContent = (
62-
<div className={cn('w-full flex flex-col min-h-screen', className)}>
62+
<div className={cn('w-full flex flex-col min-h-[max(100vh,800px)]', className)}>
6363
{headerContent && <Header>{headerContent}</Header>}
6464

6565
{isMobile && (
@@ -79,7 +79,7 @@ export const Layout: FC<PropsWithChildren<LayoutProps>> = ({
7979
{headerBreadcrumbsContent && (
8080
<HeaderBreadcrumbs hasSidebar={!!sidebar}>{headerBreadcrumbsContent}</HeaderBreadcrumbs>
8181
)}
82-
<main className="flex-1 overflow-y-auto min-h-0">{children}</main>
82+
<main className="flex-1 max-w-[96rem] mx-auto overflow-y-auto min-h-0">{children}</main>
8383
</div>
8484
</div>
8585
</div>

0 commit comments

Comments
 (0)