Ticket #1353: Adjusting modal windows for smaller screens.