Merge pull request #1447 from ultimatemember/fix/modal_photo_responsive

Fix modal responsive
This commit is contained in:
Mykyta Synelnikov
2024-02-06 01:39:18 +02:00
committed by GitHub
+5 -1
View File
@@ -593,7 +593,11 @@ function um_modal_responsive() {
if ( w <= 500 ) {
modal.animate({ 'bottom' : 0 }, 300);
} else {
modal.animate({ 'bottom' : half_gap }, 300);
if ( h - parseInt(half_gap) > h ) {
modal.animate({ 'bottom' : 0 }, 300);
} else {
modal.animate({ 'bottom' : half_gap }, 300);
}
}
}
}