feat(entries): move the reveal eye inside the custom-field value

Same placement as the TOTP field, which buys back a column on a dense row: label | value (eye inside) | copy | menu. Pinned top-right on a multiline field so it stays clear of the resize grip.
This commit is contained in:
r-zakarya
2026-08-01 11:57:56 +01:00
parent c71ea643e7
commit a2cd08c676
2 changed files with 31 additions and 5 deletions
+11 -2
View File
@@ -4355,9 +4355,18 @@ function buildCustomFieldRow(field, idx, rerender) {
kebabWrap.appendChild(kebabBtn);
kebabWrap.appendChild(kebabMenu);
// Eye inside the field rather than beside it (same as the TOTP field): it
// buys back a whole column on an already dense row. Top-right, so it never
// sits on the textarea's resize grip.
const valueWrap = el('div', {
class: 'so-custom-value-wrap' + (field.multiline ? ' is-multiline' : ''),
});
valueWrap.appendChild(valueSlot);
eye.classList.add('so-custom-value-eye');
valueWrap.appendChild(eye);
row.appendChild(labelInput);
row.appendChild(valueSlot);
row.appendChild(eye);
row.appendChild(valueWrap);
row.appendChild(copyBtn);
row.appendChild(kebabWrap);
applySecretState();