Fix issues with elements not fitting in the with of the navigation bar