Improved implementation of smallscreen nav.