Moodle 4 modal padding-top ?? Why

Moodle 4 modal padding-top ?? Why

by Raymond Reid -
Number of replies: 0

Hi all, I've noticed this on several versions of Moodle Themes and it's still in play on Moodle 4

Is there a reason for it which I am just not getting ? The sizing of any popup modal is off. 

The below is shown in Boost untouched Moodle 4 version.


When you inspect the page it, it appears like this


To fix you just need to add in :

/* Remove the padding at the top of a modal dialog box */

.modal-dialog, .modal-dialog .modal-dialog-scrollable {

    margin-top: 100px !important;

    padding-top: unset!important;

 }


/* reset the top on some modal boxes */

.box .modal-content {

    margin-top: 15px;

}

Average of ratings: Useful (3)