refactor(entries): drop the cyan secret marker on the reveal eye

The eye only renders on a secret field, so its presence already carries the state.
This commit is contained in:
r-zakarya
2026-08-01 12:47:59 +01:00
parent a8c1a88ec4
commit 4936aa78ca
2 changed files with 5 additions and 11 deletions
+3 -4
View File
@@ -4277,11 +4277,10 @@ function buildCustomFieldRow(field, idx, rerender) {
});
// The secret flag no longer has a button of its own: two adjacent toggles
// that both masked the value read as duplicates. The eye alone carries the
// state (cyan ring = stored as secret) and flipping it lives in the row
// menu, one deliberate step away from the everyday reveal.
// that both masked the value read as duplicates. The eye is shown only on a
// secret field, so its presence IS the indicator, and flipping the flag
// lives in the row menu, one deliberate step away from the everyday reveal.
function applySecretState() {
eye.classList.toggle('is-secret', !!field.is_secret);
eye.style.visibility =
(!field.is_secret || (valueInput.tagName !== 'INPUT' && !field.multiline))
? 'hidden' : '';