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:
+2
-7
@@ -1675,13 +1675,8 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
.so-combo-item:hover { background: var(--accent); color: #fff; }
|
||||
/* 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. */
|
||||
/* Cyan marker = the field is STORED as a secret, not merely hidden right now. */
|
||||
.so-custom-row .icon-btn.is-secret {
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 4px;
|
||||
}
|
||||
/* No marker for "stored as secret": the eye only exists on a secret field —
|
||||
Make public removes it — so its mere presence already says so. */
|
||||
.so-custom-add {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
@@ -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' : '';
|
||||
|
||||
Reference in New Issue
Block a user