aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-rw-r--r--src/features/messages.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/messages.js b/src/features/messages.js
index 48596f2..540f942 100644
--- a/src/features/messages.js
+++ b/src/features/messages.js
@@ -9744,9 +9744,9 @@ export function messagesFeature(ctx) {
: h('div', { class: 'npub-qr', style: 'align-self:center', html: qrSvg(npub) }),
ui.profEdit || ui.npubShown !== pk ? null : h('button', {
type: '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),
+ }, h('span', { class: 'npub-text' }, npub),
+ h('span', { class: 'npub-copy', 'aria-hidden': 'true', html: '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>' })),
ui.profEdit
? h('div', { class: 'col', style: 'gap:8px' },
// the username IS the payment address and NIP-05 — the frozen