Skip to content

Commit

Permalink
Merge pull request #285 from Tauffer-Consulting/fix/overflow-flex-mai…
Browse files Browse the repository at this point in the history
…n-content

fix(frontend): overflow on flex components
  • Loading branch information
vinicvaz authored Apr 23, 2024
2 parents 96836b4 + 8dfd991 commit c8cddf2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/src/components/PrivateLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Box, Container } from "@mui/material";
import { type FC, type ReactNode } from "react";

import { DrawerHeader } from "./header/drawerMenu.style";
import { Header } from "./header/header";

interface Props {
Expand All @@ -9,10 +10,16 @@ interface Props {

export const PrivateLayout: FC<Props> = ({ children }) => {
return (
<Box sx={{ display: "flex", width: "100%", marginTop: "64px" }}>
<Box sx={{ display: "flex" }}>
<Header />

<Container component="main" maxWidth={false} sx={{ padding: 3 }}>
<Container
component="main"
maxWidth={false}
sx={{ padding: 3, overflow: "auto" }}
>
<DrawerHeader />

<Box sx={{ paddingLeft: 0 }}>{children}</Box>
</Container>
</Box>
Expand Down

0 comments on commit c8cddf2

Please sign in to comment.