From 084ac2624f0ad017b6fa0623784529a5ec28ae3e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 3 Sep 2026 21:13:20 -0700 Subject: Copy preimage joins the cluster too: no longer a lone full-width block, now a small button in the grouped row with copy tx id / view explorer / copy address — one consistent size for every secondary copy action 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/features') diff --git a/src/features/ark.js b/src/features/ark.js index ed002f7..a421dfb 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -1175,9 +1175,9 @@ export function arkFeature(ctx) { row(t('arkFeeChain'), fmtAmount(m.chainFeeSat) + ' ' + unitLabel()), row(t('arkFeeService'), fmtAmount(m.serviceFeeSat) + ' ' + unitLabel())) : m.detail ? row(t('detailsLabel'), m.detail) : null, - // proof of payment: the preimage is what a merchant asks for + // proof of payment: the preimage is what a merchant asks for (its copy + // button rides the grouped small-button row below with the others) m.preimage ? row(t('preimageLabel'), shortTxid(m.preimage)) : 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 // the sweep-back — the copy-link lives in the grouped small-button row // below, next to the other copy actions. @@ -1214,6 +1214,7 @@ export function arkFeature(ctx) { const open = g && !g.claimed && !g.revoked; const chips = [ open ? copyBtn(`${location.origin}/g/${encodeArkGiftCode(getNetwork(), g.amountSat, hex.decode(g.secretHex))}`, t('giftCopyLinkAgain')) : null, + m.preimage ? copyBtn(m.preimage, t('copyPreimage')) : null, m.txid ? copyBtn(m.txid, t('copyTxid')) : null, m.txid ? h('a', { class: 'btn btn-sm', href: url, target: '_blank', rel: 'noopener', onClick: (e) => { e.preventDefault(); openExternal(url); } }, t('viewOnMempool')) : null, m.to ? copyBtn(m.to, t('copyAddress')) : null, -- cgit v1.2.3