[UI/Security] "Secret" toggle has an oversized, invisible click area extending beyond the visible switch
Describe the bug
The "Secret" toggle switch in the Variable edit panel has a much larger clickable area than its visible boundary. Inspecting the element shows the clickable label spans roughly 859x20 pixels — far wider than the small visible switch — extending into the row where the "Audit log for each access" informational text is shown. Clicking anywhere in this invisible area toggles "Secret" on/off, including clicking on or near the audit log info message.
Steps to reproduce
- Open an existing Variable's edit panel (Variables > Edit)
- Locate the "Secret" toggle switch
- Click anywhere within the row area near the toggle — not just directly on the visible switch (e.g. click on/near the "Audit log for each access" text below it)
- Observe that "Secret" toggles on/off even though the click was not on the visible switch itself
Expected behavior
The toggle should only respond to clicks within its visible switch boundary. Clicking on unrelated informational text (like the audit log message) should not change the "Secret" setting.
Actual behavior
The clickable hit-area extends well beyond the visible switch, causing accidental toggles from clicks that appear unrelated to the switch — which is particularly risky for a security-relevant setting like "Secret".
Environment
- Windmill version: CE v1.818.0-4-gc2d8997549
- Deployment: Docker Compose (local)
- OS: Windows
- Browser: Chrome
Screenshot
Screen recording
https://github.com/user-attachments/assets/27ae3055-425a-44f5-b6ea-b20f7d1ccb08
Source: windmill-labs/windmill