fix style of navbar when changing size