Fix navbar display issues on screen sizes between 768 and 998px