Fixed modals not scaling up on @screen-md-min.

Fixed #14062.