aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-14 00:16:20 -0700
committerAdam Soltys <[email protected]>2026-08-14 00:16:20 -0700
commit106254b74b28a5d5e1390bacabaf08e5613a86f4 (patch)
tree916c468b217f275d634e58e3916ec1517f945dc1 /src/features
parent5abf76764c445b742a50080ebb97c313531d5962 (diff)
downloadcoinosv3-106254b74b28a5d5e1390bacabaf08e5613a86f4.tar.gz
coinosv3-106254b74b28a5d5e1390bacabaf08e5613a86f4.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src/features')
-rw-r--r--src/features/messages.js12
1 files changed, 5 insertions, 7 deletions
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: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>',
- })),
+ 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'),