Merge pull request #920 from alexxyzeng/alex

fix: show vertical centered modal in ie
This commit is contained in:
zuiidea
2018-11-28 10:18:22 +08:00
committed by GitHub
2 changed files with 1 additions and 16 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class User extends PureComponent {
title: `${
modalType === 'create' ? i18n.t`Create User` : i18n.t`Update User`
}`,
wrapClassName: 'vertical-center-modal',
centered: true,
onOk(data) {
dispatch({
type: `user/${modalType}`,
-15
View File
@@ -63,21 +63,6 @@ body {
box-shadow: 0 0 20px rgba(100, 100, 100, 0.2);
}
.vertical-center-modal {
display: flex;
align-items: center;
justify-content: center;
.ant-modal {
top: 0;
.ant-modal-body {
max-height: 80vh;
overflow-y: auto;
}
}
}
.ant-form-item-control {
vertical-align: middle;
}