@@ -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>
+
}
@@ -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;