better support of main menu and scrollspy when in smaller screens causin...

...g wrapping
attempt to improve issues recorded in #402