Hide the search form at the top navbar when there's not enough space