collapse the navbar on narrow windows

so it doesn't take up a bunch of vertical height when not in use