From 69575e81756d86e5e6a3877976e31e4fa46a6ca4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 2 Aug 2026 21:08:46 -0700 Subject: Settings takes the whole page — no balance card, no tab strip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hub gains a back button (the logo and avatar menu also lead out); an offline wallet's forced settings tab keeps its banner. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/app.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app.js b/src/app.js index 4ae1912..232ad8e 100644 --- a/src/app.js +++ b/src/app.js @@ -1466,7 +1466,8 @@ function settingsTab() { nav('payments', t('settingsPayments')), nav('network', t('settingsNetwork')), nav('nostr', t('nostrSettings')), - nav('advanced', t('advancedSettings')) + nav('advanced', t('advancedSettings')), + h('button', { class: 'btn-ghost btn-block', style: 'margin-top:6px', onClick: () => { ui.tab = wallet.offline ? 'settings' : 'receive'; render(); } }, t('back')) ); } @@ -1947,6 +1948,17 @@ function walletScreen() { if (ob) { return h('div', { class: 'col', style: 'gap:0' }, brandHeader(false), h('div', { class: 'mt16' }, ob)); } + // Settings is a full page of its own — no balance, no tab strip; the hub's + // back button (or the logo / avatar menu) leads out. + if (ui.tab === 'settings') { + return h( + 'div', + { class: 'col', style: 'gap:0' }, + brandHeader(true), + ui.offlineFallback && wallet.offline ? offlineBanner() : null, + h('div', { class: 'mt16' }, tabContent()) + ); + } return h( 'div', { class: 'col', style: 'gap:0' }, -- cgit v1.2.3