Skip to content

Instantly share code, notes, and snippets.

@yonixw
Created May 2, 2021
Embed
What would you like to do?
antd full screen dialog
@media screen and (max-width: 800px) {
.ant-modal-mask {
animation-duration: 0s !important; /* fade */
}
.ant-modal-content {
height: 100%;
}
.ant-modal {
animation-duration: 0s !important; /* zoom */
position: fixed;
display: contents;
margin: 0;
padding: 0;
bottom: 0;
right: 0;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
min-height: 100vh;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment