Fix overlap of in-game UI elements when using low resolutions

Fixes #6579