Corrected top navbar behavior on smaller screens.