Improves class structure of documentation navigation, corrects the display of long buttons on small screens