From df68232a38120c0d67d05c441407b0267c47d44c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Aug 2026 01:41:07 -0700 Subject: Copy joins the pencil inside the address box Co-Authored-By: Claude Fable 5 --- src/features/names.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/features') diff --git a/src/features/names.js b/src/features/names.js index 0f37658..3cff89b 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -23,7 +23,7 @@ const DOMAIN = 'coinos.io'; const AUTH_KIND = 21353; export function namesFeature(ctx) { - const { h, ui, render, wallet, hook, toast, copyBtn, brandHeader, goBack } = ctx; + const { h, ui, render, wallet, hook, toast, copy, copyBtn, brandHeader, goBack } = ctx; // The wallet's own key signs registrar requests: it's the one key that is // always available — offline, in the background, with no signer attached. @@ -311,13 +311,18 @@ export function namesFeature(ctx) { h('div', { html: qrSvg(addr) }), h('div', { class: 'addr-box addr-editable', style: 'width:100%;font-size:16px' }, addr, - // the pen is how you change the name — right where the name is - h('button', { - class: 'addr-edit', title: t('namesCustom'), - onClick: () => { ui.nameEditOpen = true; ui.nameClaimError = null; render(); }, - html: '', - })), - copyBtn(addr, t('namesCopy')), + // editing and copying live right where the name is + h('span', { class: 'addr-actions' }, + h('button', { + title: t('namesCustom'), + onClick: () => { ui.nameEditOpen = true; ui.nameClaimError = null; render(); }, + html: '', + }), + h('button', { + title: t('namesCopy'), + onClick: () => copy(addr), + html: '', + }))), offerSection()); } -- cgit v1.2.3