夏泽霖“git config --global user.name 夏泽霖“ 2 лет назад
Родитель
Сommit
4ed42f9413

+ 3 - 2
src/components/ViewsWordEditor/ViewsWordEditor.tsx

@@ -20,7 +20,7 @@ interface ViewsWordEditorInterface {
 export function ViewsWordEditor({ alert, word }: ViewsWordEditorInterface) {
   return <Modal
     centered
-    width="100%"
+    width="60%"
     wrapClassName="full-modal"
     cancelText="取消"
     {...alert}
@@ -29,7 +29,8 @@ export function ViewsWordEditor({ alert, word }: ViewsWordEditorInterface) {
       mode="view"
       {...word}
     />
-  </Modal>;
+  </Modal>
+  
 }
 
 

+ 3 - 1
src/components/ViewsWordEditor/index.scss

@@ -1,12 +1,14 @@
 .full-modal {
   .ant-modal-content {
-    height: 100vh;
+    height: 90vh;
+    
     display: flex;
     flex-direction: column;
   }
 
   .ant-modal-body {
     height: 100%;
+    
     flex: 1;
   }
 }