Fix for navigation bar with smaller browser windows