Restricting the navbar and ToC to a reasonable width.

(instead of filling up the whole width of the screen)

Bug: 64341, 64667
Change-Id: Ib0d0fbfd8816ecb6b5e8e7344a045905e3658cc1