apify / apify-docs

This project is the home of Apify's documentation.
https://docs.apify.com
Apache License 2.0
29 stars 76 forks source link

fix: make TOC rendering consistent regardless of the page content #1189

Closed barjin closed 2 months ago

barjin commented 2 months ago

Sets flex-wrap: nowrap to allow for "overflowing" TOC when too wide.

Swizzles the TOCItems component into @apify/docs-theme. Uses a hack with ::before pseudoclass to reserve space for the bold TOC items, so the element width doesn't change on selection.

Closes #1188