mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
common: fix modal animation on mobile & tweak some transition & animation css
This commit is contained in:
@@ -58,7 +58,11 @@ export default class ModalManager extends Component {
|
||||
|
||||
MicroModal.show('Modal', {
|
||||
awaitCloseAnimation: true,
|
||||
awaitOpenAnimation: true,
|
||||
onShow: () => $('body').addClass('modal-open'),
|
||||
onClose: () => {
|
||||
$('body').removeClass('modal-open');
|
||||
|
||||
const backdrop = $('.modal-backdrop');
|
||||
|
||||
backdrop.fadeOut(200, () => {
|
||||
|
Reference in New Issue
Block a user