Fixes/hide page text on small devices

Fixes the problem that on small devices the main navigation buttons on top right broke into a next line over the legend button, which made opening/closing the legend not possible anymore.