From ac3e0bf43aac82e66010c3e845556ab32ad03aed Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Aug 2026 13:48:33 -0700 Subject: Balance card: drop the descriptor line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Instant · free to send" and "On-chain · mining fees apply" were one line that swapped with the account; the card is just the balance now. Strings, styles and stale translations removed with it, and the face's reserved height comes down to match. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/app.js | 3 --- src/i18n.js | 2 -- src/style.css | 3 +-- 3 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/app.js b/src/app.js index 9e680a2..011fba8 100644 --- a/src/app.js +++ b/src/app.js @@ -2363,9 +2363,6 @@ function balanceCard() { h('div', { class: 'amt', style: firstLoad ? 'opacity:.3' : '' }, firstLoad ? h('span', { class: 'spinner sm', style: 'margin-right:8px' }) : null, animatedAmount('bal:' + sel, isSpending ? spending : saving), ' ', unitTag('unit')), - hasArk - ? h('div', { class: 'small muted balance-note' }, isSpending ? t('balanceNoteSpending') : t('balanceNoteSavings')) - : null, pending > 0 || featLines.length ? h('div', { class: 'split' }, pending > 0 diff --git a/src/i18n.js b/src/i18n.js index 1e47be4..4d305d8 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -141,8 +141,6 @@ const STR = { spendingLabel: 'Spending', savingLabel: 'Savings', balanceSwitch: 'Switch to {name}', - balanceNoteSpending: 'Instant · free to send', - balanceNoteSavings: 'On-chain · mining fees apply', movingLabel: 'Moving…', balance: 'Balance', pending: 'Pending', diff --git a/src/style.css b/src/style.css index d3bc9fa..5cc5366 100644 --- a/src/style.css +++ b/src/style.css @@ -513,8 +513,7 @@ body::after { @media (prefers-reduced-motion: reduce) { .onb-mark { animation: none; } } .onb-addr { color: var(--muted); font-family: var(--mono); font-size: 13px; } /* balance card: one account at a time, dots to flip */ -.balance-face { min-height: 96px; } -.balance-note { margin-top: 2px; } +.balance-face { min-height: 78px; } /* amount input with an inline Max affordance */ .amt-field { position: relative; display: flex; flex: 1; min-width: 0; } .amt-field input { width: 100%; padding-right: 52px; } -- cgit v1.2.3