Steps to replicate the issue (include links if applicable):
- Go to a page with a small amount of top level sections and lots of subsections in Vector 2022
e.g. https://en.wikipedia.beta.wmflabs.org/wiki/Table_of_contents_collapsing_test
What happens?:
- The table of contents appears collapsed by default
What should have happened instead?:
We currently collapse sections when the number of sections is greater than 28
We currently count number of sections to determine collapsing, but I think we should also count the number of top level sections. IN the case of this article it's 2.
Perhaps we can only collapse if number of top level sections is greater than 3 ?
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):