From da13a93a3852eb15156a5a84a73a8200d1344685 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Aug 2026 13:58:31 -0700 Subject: Move money: shorter amount placeholder, row wraps on narrow phones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The placeholder repeated a minimum the line below already states, and it was clipped anyway — the amount field had 14px of usable width at 360px because "Move to Spending" crushed it. The row wraps to two full-width lines when it's tight and stays on one line when there's room. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/features/ark.js | 2 +- src/i18n.js | 1 - src/style.css | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/features/ark.js b/src/features/ark.js index f37d707..0488274 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -1582,7 +1582,7 @@ export function arkFeature(ctx) { h('div', { class: 'input-group' }, amountField({ value: ui.arkBoardAmt, - placeholder: t('arkBoardPlaceholder', { n: minBoard.toLocaleString() }), + placeholder: t('arkOffboardAmtPlaceholder'), // the minimum is stated below onInput: (e) => { ui.arkBoardAmt = e.target.value; render(); }, maxSat: canBoard ? wallet.spendable : 0, onMax: () => { ui.arkBoardAmt = String(maxBoardSat()); render(); }, diff --git a/src/i18n.js b/src/i18n.js index ab03ea6..af71814 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -424,7 +424,6 @@ const STR = { arkBoardHistory: 'Moved to Spending', arkVtxos: 'Coins (VTXOs)', arkPendingActions: '{n} operation(s) in progress', - arkBoardPlaceholder: 'Amount (min {n} sats)', arkBoardBtn: 'Move to Spending', arkBoardFeeNote: 'Fee {fee} sats — {net} sats will arrive in Spending.', arkBoardFeeLabel: 'Fee', diff --git a/src/style.css b/src/style.css index edae677..7c3113e 100644 --- a/src/style.css +++ b/src/style.css @@ -525,3 +525,8 @@ body::after { } .balance-switch:hover { color: var(--ink); border-color: var(--line-strong); } .balance-switch svg { opacity: .75; } +/* Move-money row: the action labels are long ("Move to Spending"), so let the + row wrap to two full-width lines rather than crushing the amount field. */ +.balance-move .input-group { flex-wrap: wrap; } +.balance-move .amt-field { flex: 1 1 150px; } +.balance-move .input-group > button { flex: 1 1 150px; } -- cgit v1.2.3