web: Fix appearance of modals on low-resolution devices