1 click to "Expand all" and "Minimise all" in Automations and scripts

Usually the first thing I do going into an automation is expand everything so I get a better read on the content. Then I may minimise the sections I don’t need depending on what I’m doing

It would be much easier if there were options to expand and minimise the content with 1 click

Perhaps at trigger/condition/action level as well as overall