Skip to content

Commit

Permalink
Merge pull request zuiidea#920 from alexxyzeng/alex
Browse files Browse the repository at this point in the history
fix: show vertical centered modal in ie
  • Loading branch information
zuiidea authored Nov 28, 2018
2 parents f230429 + 6ba45d5 commit 16860f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/pages/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
15 changes: 0 additions & 15 deletions src/themes/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 16860f9

Please sign in to comment.