From d5e590e655c989cb855328e28349df2129adcd18 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 2 Sep 2026 18:53:22 -0700 Subject: Two small trims: the payment detail's copy-preimage becomes a full-width button matching the Back beneath it, and the receive page's lightning address drops its edit pencil — renaming lives in the profile editor's username field, and two doors was one too many MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr --- src/features/ark.js | 2 +- src/features/names.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/features/ark.js b/src/features/ark.js index 140eeb0..c3a8a8c 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -1118,7 +1118,7 @@ export function arkFeature(ctx) { m.detail ? row(t('detailsLabel'), m.detail) : null, // proof of payment: the preimage is what a merchant asks for m.preimage ? row(t('preimageLabel'), shortTxid(m.preimage)) : null, - m.preimage ? copyBtn(m.preimage, t('copyPreimage')) : null, + m.preimage ? h('button', { class: 'btn-block', onClick: () => ctx.copy(m.preimage) }, t('copyPreimage')) : null, // A send that funded a bearer gift: show its fate, and while unclaimed // offer the link again plus the sweep-back — same powers the gift card // has, where the sender will actually go looking for them: history. diff --git a/src/features/names.js b/src/features/names.js index eafeb0e..f8f97cb 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -474,13 +474,9 @@ export function namesFeature(ctx) { h('div', { html: qrSvg(addr) }), h('div', { class: 'addr-box addr-editable', style: 'width:100%;font-size:16px' }, addr, - // editing and copying live right where the name is + // copying lives right where the name is; changing the name moved to + // the profile editor's username field — two doors was one too many 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), -- cgit v1.2.3