fixed pageContainer width
This commit is contained in:
parent
61922f28ee
commit
952b3f6c4e
6 changed files with 20 additions and 15 deletions
|
|
@ -5,7 +5,6 @@ import React, { PropsWithChildren } from "react";
|
|||
|
||||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
pageContainer: {
|
||||
// border: "1px solid red",
|
||||
width: "100%",
|
||||
overflowX: "hidden",
|
||||
overflowY: "auto",
|
||||
|
|
@ -42,9 +41,9 @@ interface Props extends PropsWithChildren{
|
|||
|
||||
export const PageContainer: React.FunctionComponent<Props> = props => {
|
||||
const classes = useStyles();
|
||||
const { children } = props;
|
||||
let fullViewport = false
|
||||
let isCenterCenter = false
|
||||
const { children, fullViewport, isCenterCenter } = props;
|
||||
// let fullViewport = false
|
||||
// let isCenterCenter = false
|
||||
return (
|
||||
<Container
|
||||
className={classNames(
|
||||
|
|
@ -52,7 +51,7 @@ export const PageContainer: React.FunctionComponent<Props> = props => {
|
|||
isCenterCenter && classes.centerCenter
|
||||
)}
|
||||
disableGutters
|
||||
// maxWidth={true}
|
||||
maxWidth={false}
|
||||
children={<React.Fragment>{children}</React.Fragment>}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue