diff --git a/frontend/my/src/ModalPreview.js b/frontend/my/src/ModalPreview.js index 6e35e34..ddc6993 100644 --- a/frontend/my/src/ModalPreview.js +++ b/frontend/my/src/ModalPreview.js @@ -5,10 +5,6 @@ import * as cs from "./constants" import { Spin } from "antd" class ModalPreview extends React.PureComponent { - state = { - loading: true - } - makeForm(body) { let form = document.createElement("form") form.method = cs.MethodPost @@ -33,24 +29,38 @@ class ModalPreview extends React.PureComponent { onCancel={ this.props.onCancel } onOk={ this.props.onCancel }>
- - -
diff --git a/frontend/my/src/index.css b/frontend/my/src/index.css index 53feac9..761ae4d 100644 --- a/frontend/my/src/index.css +++ b/frontend/my/src/index.css @@ -256,6 +256,14 @@ td.actions { .preview-iframe-container { min-height: 500px; } + .preview-iframe-spinner { + position: absolute !important; + width: 40px; + height: 40px; + left: calc(50% - 40px); + top: calc(30%); + /* top: 15px; */ + } .preview-iframe { border: 0; width: 100%;