Google Docs – Reduce Vertical Spacing in Table of Contents

google docs

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.

Best Answer

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; }