Fix overlap of in-game UI elements at low resolutions

Fixes #6579