rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
478 stars 18 forks source link

Enhance `Revealer` Clickable Area for Collapsing #90

Open Sn3llius opened 1 week ago

Sn3llius commented 1 week ago

Description

Currently, the Revealer component is only collapsible when clicking on the first row, where the revealer sign is located. To improve the user experience, it would be beneficial to make the entire Revealer box clickable for collapsing.

Current Behavior

The Revealer component collapses/expands only when clicking on the first row (where the revealer sign is).

Desired Behavior

The Revealer component should be collapsible/expandable when clicking anywhere within the Revealer box, not just the "first row".

Benefits

Image:

image
mad-moo commented 1 week ago

I like this idea. We should probably add this and see if it's nice to use in practice