From f440162701e9801796b82d8fd9e87e08a4a4a751 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Aug 2026 13:39:17 -0700 Subject: Receive: the BOLT 12 section takes over the card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Opening it hides the payment address and its QR — two payment codes on one screen is a good way to have someone scan the wrong one. "Hide" becomes "Back", which is what it now does. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/features/names.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/features') diff --git a/src/features/names.js b/src/features/names.js index edc3be1..b72f118 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -298,6 +298,9 @@ export function namesFeature(ctx) { claimForm(false)); } const addr = `${st.name}@${st.domain || DOMAIN}`; + // The offer section takes over the card when open: two payment codes on + // screen at once is a good way to have someone scan the wrong one. + if (ui.namesOfferOpen) return h('div', { class: 'card col', style: 'align-items:center;gap:14px' }, seg, offerSection()); return h('div', { class: 'card col', style: 'align-items:center;gap:14px' }, seg, h('div', { html: qrSvg(addr) }), @@ -349,10 +352,9 @@ export function namesFeature(ctx) { } const offers = Array.isArray(ui.namesOffers) ? ui.namesOffers : []; return h('div', { class: 'col', style: 'gap:10px;width:100%' }, - h('div', { class: 'divider' }), h('div', { class: 'row between', style: 'align-items:baseline' }, h('strong', {}, t('namesOfferTitle')), - h('button', { class: 'linklike small', onClick: () => { ui.namesOfferOpen = false; render(); } }, t('hide'))), + h('button', { class: 'linklike small', onClick: () => { ui.namesOfferOpen = false; render(); } }, t('back'))), h('p', { class: 'small muted', style: 'margin:0' }, t('namesOfferDesc')), h('div', { class: 'row gap6' }, h('input', { -- cgit v1.2.3