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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user