Open mewcrow opened 4 years ago
With inspiration from https://github.com/adeptoas/sweet-modal-vue/pull/103/commits/d3eb06c9c4b6e997cb45e0ca7923f9e31051918b, we fixed this problem in our application by adding these to our site's stylesheet:
body .sweet-modal-overlay {
display: flex;
align-items: center;
justify-content: center;
}
body .sweet-modal {
position: relative;
top: auto;
left: auto;
transform: scale(0.9);
}
body .sweet-modal.is-visible {
transform: none;
}
There is two identical components, one inside modal, other is not