Skip to content

Commit

Permalink
fix: resolve bottom bar clip
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Victor committed Nov 28, 2023
1 parent f53cdc1 commit ff5393d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/components/inc/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ const MainLayout = () => {
return (
<AnimatePresence>
{isSuccess && (
<Grid
as={motion.div}
<motion.div
initial={{
opacity: 0,
}}
Expand All @@ -74,27 +73,26 @@ const MainLayout = () => {
exit={{
opacity: 0,
}}
css={{
height: "100vh",
// gridTemplateRows: "1fr auto",
overflow: "hidden",
}}
>
<Portal root="side_bar_root">
<Suspense fallback={<Box />}>
<SideBar />
</Suspense>
</Portal>
<Box
<Grid
css={{
display: "grid",
gridTemplateAreas: "'center'",
}}
>
<TopBar />
<Box
css={{
display: "grid",
gridTemplateRows: "1fr auto",
maxHeight: "100%",
gridArea: "center",
height: "100vh",
overflow: "hidden",
}}
>
<Grid
Expand Down Expand Up @@ -129,8 +127,8 @@ const MainLayout = () => {
</Grid>
<BottomBar />
</Box>
</Box>
</Grid>
</Grid>
</motion.div>
)}
</AnimatePresence>
);
Expand Down

0 comments on commit ff5393d

Please sign in to comment.