The modal now behaves itself on small screens as well