Browse Source

fix dialog auto flow

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 2 years ago
parent
commit
eafd50262d

+ 3 - 0
client/src/components/customDialog/DialogTemplate.tsx

@@ -17,6 +17,9 @@ const useStyles = makeStyles((theme: Theme) => ({
     '& form': {
       display: 'flex',
     },
+    '& .MuiDialogContent-root': {
+      maxHeight: '60vh',
+    },
   },
   block: {
     borderRadius: 8,

+ 0 - 1
client/src/pages/collections/CreateFields.tsx

@@ -34,7 +34,6 @@ const useStyles = makeStyles((theme: Theme) => ({
   optionalWrapper: {
     width: '100%',
     paddingRight: theme.spacing(1),
-    maxHeight: '240px',
     overflowY: 'auto',
   },
   rowWrapper: {