fix: show vertical centered modal in ie

This commit is contained in:
xiayao
2018-11-28 00:44:21 +08:00
parent f230429ddd
commit 6ba45d5bc3
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;
}