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
+2 -7
View File
@@ -1675,13 +1675,8 @@ input[type="range"]::-webkit-slider-thumb {
.so-combo-item:hover { background: var(--accent); color: #fff; } .so-combo-item:hover { background: var(--accent); color: #fff; }
/* The eye carries the secret state itself — a second toggle beside it read as /* The eye carries the secret state itself — a second toggle beside it read as
a duplicate of the reveal. Flipping the flag lives in the row menu. */ a duplicate of the reveal. Flipping the flag lives in the row menu. */
/* Cyan marker = the field is STORED as a secret, not merely hidden right now. */ /* No marker for "stored as secret": the eye only exists on a secret field —
.so-custom-row .icon-btn.is-secret { Make public removes it — so its mere presence already says so. */
color: var(--accent);
background: var(--accent-soft);
border: 1px solid var(--accent);
border-radius: 4px;
}
.so-custom-add { .so-custom-add {
margin-top: 8px; margin-top: 8px;
} }
+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 // 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 // that both masked the value read as duplicates. The eye is shown only on a
// state (cyan ring = stored as secret) and flipping it lives in the row // secret field, so its presence IS the indicator, and flipping the flag
// menu, one deliberate step away from the everyday reveal. // lives in the row menu, one deliberate step away from the everyday reveal.
function applySecretState() { function applySecretState() {
eye.classList.toggle('is-secret', !!field.is_secret);
eye.style.visibility = eye.style.visibility =
(!field.is_secret || (valueInput.tagName !== 'INPUT' && !field.multiline)) (!field.is_secret || (valueInput.tagName !== 'INPUT' && !field.multiline))
? 'hidden' : ''; ? 'hidden' : '';