fix modal width
This commit is contained in:
parent
1527f9fbad
commit
5d519e3a96
|
@ -1,9 +1,9 @@
|
||||||
import { Dialog, styled } from '@mui/material';
|
import { Dialog, styled } from '@mui/material';
|
||||||
|
|
||||||
const DialogBoxBase = styled(Dialog)(({ theme }) => ({
|
const DialogBoxBase = styled(Dialog)(({ theme, maxWidth }) => ({
|
||||||
'& .MuiDialog-paper': {
|
'& .MuiDialog-paper': {
|
||||||
padding: theme.spacing(1, 1.5),
|
padding: theme.spacing(1, 1.5),
|
||||||
maxWidth: '346px',
|
maxWidth: maxWidth ?? '346px',
|
||||||
},
|
},
|
||||||
'& .MuiDialogTitle-root': {
|
'& .MuiDialogTitle-root': {
|
||||||
padding: theme.spacing(2),
|
padding: theme.spacing(2),
|
||||||
|
|
Loading…
Reference in a new issue