Browse Source

update dialog content space

tumao 4 years ago
parent
commit
91b40fef62
1 changed files with 2 additions and 5 deletions
  1. 2 5
      client/src/components/customDialog/CustomDialog.tsx

+ 2 - 5
client/src/components/customDialog/CustomDialog.tsx

@@ -16,9 +16,7 @@ import CustomDialogTitle from './CustomDialogTitle';
 const useStyles = makeStyles((theme: Theme) =>
 const useStyles = makeStyles((theme: Theme) =>
   createStyles({
   createStyles({
     paper: {
     paper: {
-      // maxWidth: '480px',
       minWidth: '480px',
       minWidth: '480px',
-      // width: '100%',
       borderRadius: '8px',
       borderRadius: '8px',
       padding: 0,
       padding: 0,
     },
     },
@@ -29,10 +27,9 @@ const useStyles = makeStyles((theme: Theme) =>
       maxWidth: '80%',
       maxWidth: '80%',
     },
     },
     dialogContent: {
     dialogContent: {
-      marginTop: theme.spacing(4),
+      marginTop: theme.spacing(2),
     },
     },
     title: {
     title: {
-      // padding: theme.spacing(4),
       '& p': {
       '& p': {
         fontWeight: '500',
         fontWeight: '500',
         overflow: 'hidden',
         overflow: 'hidden',
@@ -43,7 +40,7 @@ const useStyles = makeStyles((theme: Theme) =>
       },
       },
     },
     },
     padding: {
     padding: {
-      padding: theme.spacing(4),
+      padding: theme.spacing(3, 4, 4),
     },
     },
     cancel: {
     cancel: {
       color: theme.palette.common.black,
       color: theme.palette.common.black,