How can I reduce the vertical spacing in a Google document's table of contents?

For example, in one of my Google document, the vertical spacing in the table of contents used to be fine:

enter image description here

but after refreshing it, for some reason unknown to me, the vertical spacing has increased:

enter image description here

I would like to reduce the vertical spacing back to normal, i.e. as shown in the first screenshot.


I am uncertain what would be causing the change you've noticed. That said, .navigation-item has height and line-height set. Thus, you should be able to modify the spacing to your liking by updating the user style via an add-on such as Stylus or Tampermonkey.

For instance:

.navigation-widget-content.goog-container .navigation-item { line-height: .75; }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.