Skip to content

Commit

Permalink
fix side meunu layout overflow (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
notmd committed Feb 8, 2023
1 parent b733471 commit e6b574e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions website/src/components/Layout.tsx
Expand Up @@ -31,7 +31,7 @@ export const getTransparentHeaderLayout = (page: React.ReactElement) => (
);

export const getDashboardLayout = (page: React.ReactElement) => (
<Grid templateRows="min-content 1fr" h="full">
<Grid templateRows="min-content 1fr" h="full" gridTemplateColumns="minmax(0, 1fr)">
<Header />
<ToSWrapper>
<SideMenuLayout
Expand All @@ -53,19 +53,17 @@ export const getDashboardLayout = (page: React.ReactElement) => (
},
]}
>
<Grid templateRows="1fr min-content" h="full">
<Box>{page}</Box>
<Box mt="10">
<SlimFooter />
</Box>
</Grid>
<Box>{page}</Box>
<Box mt="10">
<SlimFooter />
</Box>
</SideMenuLayout>
</ToSWrapper>
</Grid>
);

export const getAdminLayout = (page: React.ReactElement) => (
<div className="grid grid-rows-[min-content_1fr_min-content] h-full justify-items-stretch">
<Grid templateRows="min-content 1fr" h="full" gridTemplateColumns="minmax(0, 1fr)">
<Header />
<SideMenuLayout
menuButtonOptions={[
Expand Down Expand Up @@ -93,7 +91,7 @@ export const getAdminLayout = (page: React.ReactElement) => (
>
{page}
</SideMenuLayout>
</div>
</Grid>
);

export const noLayout = (page: React.ReactElement) => page;

0 comments on commit e6b574e

Please sign in to comment.