antfu/eslint-flat-config-viewer

Add a button to collapse/expand all config items at once

stefanobartoletti opened this issue · 3 comments

Clear and concise description of the problem

At the moment, individual config items can be expanded/collapsed by clicking on their titles.

I think it would be a nice addition to have a button at the top of the page to collapse/expand all of them at once.

When a user adds custom config, they are placed at the bottom of the page. Collapsing all items at once could help to navigate to that without too much scrolling, and also to see at-a-glance a list of all used config items.

Thanks!

Suggested solution

Add a button to collapse/expand all items

Alternative

No response

Additional context

No response

Validations

Makes sense, PR welcome :)

I'm quite busy with regular work at the moment, I may try to have a look at this when I will have more spare time.

I'm not jealous though of the idea, if somebody else happens to read this and wants to give it a try, be my guest :)

Thanks for this 🙏