collapse navbar on small screen

avoids stacked navbar on narrow (but not too narrow) windows

closes #6531