[#723] Make navigation strip go into multiple lines on smaller screens

Instead of extending to the right/creating a huge sidebar

Credit to facetofcathy on Dreamwidth for suggesting this code!

Fixes #723