From 106254b74b28a5d5e1390bacabaf08e5613a86f4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 14 Aug 2026 00:16:20 -0700 Subject: Holding backspace works in the recipient field: search results and reveals stop rebuilding the focused input mid-keypress; the profile npub is itself the copy button Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv --- src/features/messages.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/features') diff --git a/src/features/messages.js b/src/features/messages.js index 598e661..a27a6b7 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -1166,13 +1166,11 @@ export function messagesFeature(ctx) { : showAbout && !ui.profEdit ? h('p', { class: 'small', style: 'margin:0;white-space:pre-wrap' }, about.slice(0, 1000)) : null, // your own npub stays out of the editor — it means nothing to most // people, and the account settings still show it to those who care - mine ? null : h('div', { class: 'addr-box break npub-box', style: 'font-size:11px' }, - h('span', { class: 'grow', style: 'min-width:0' }, npub), - h('button', { - class: 'copy-ico', title: t('copy'), - onClick: async () => { try { await navigator.clipboard.writeText(npub); toast(t('copied')); } catch {} }, - html: '', - })), + mine ? null : h('button', { + class: 'addr-box break npub-box', title: t('copy'), + style: 'font-size:11px;cursor:pointer;text-align:left;width:100%', + onClick: async () => { try { await navigator.clipboard.writeText(npub); toast(t('copied')); } catch {} }, + }, npub), ui.profEdit ? h('div', { class: 'col', style: 'gap:8px' }, field(t('profName'), 'name'), -- cgit v1.2.3