settings: clicking the eye again actually hides the secret
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m11s

Previously the input type was `revealed || !isMasked ? "text" : "password"` —
once revealed the value was no longer the "***" placeholder, so !isMasked
kept the input in text mode even with revealed=false. Type now depends on
`revealed` alone, so a second click re-dots the field.

v2026.04.15.6

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-15 14:51:57 +02:00
parent c22642630d
commit 604fdc5c6c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "netfelix-audio-fix",
"version": "2026.04.15.5",
"version": "2026.04.15.6",
"scripts": {
"dev:server": "NODE_ENV=development bun --hot server/index.tsx",
"dev:client": "vite",

View File

@@ -146,7 +146,7 @@ function SecretInput({
return (
<div className={`relative ${className ?? ""}`}>
<Input
type={revealed || !isMasked ? "text" : "password"}
type={revealed ? "text" : "password"}
value={value}
disabled={locked}
onChange={(e) => onChange(e.target.value)}