Browse Source

fix code-block style

shanghaikid 2 years ago
parent
commit
43b68bbd13
1 changed files with 4 additions and 1 deletions
  1. 4 1
      client/src/components/customDialog/DialogTemplate.tsx

+ 4 - 1
client/src/components/customDialog/DialogTemplate.tsx

@@ -14,6 +14,9 @@ import CodeView from '../code/CodeView';
 const useStyles = makeStyles((theme: Theme) => ({
   wrapper: {
     display: 'flex',
+    '& form': {
+      display: 'flex',
+    },
   },
   block: {
     borderRadius: 8,
@@ -79,7 +82,7 @@ const DialogTemplate: FC<DialogContainerProps> = ({
   const _handleConfirm = (event: React.FormEvent<HTMLFormElement>) => {
     handleConfirm();
     event.preventDefault();
-  }
+  };
 
   return (
     <section className={classes.wrapper}>