Fix issue with navbar flashing wide viewports