aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-16 01:41:50 -0700
committerAdam Soltys <[email protected]>2026-06-16 01:41:50 -0700
commit833cfd2459aa8d668b787a421414dd5376bb7882 (patch)
tree32af3ff1ee23ffe7482112084a8bd04ab8cc3c8a /src/app.js
parent1cb481d2c906b983b325c97cd2629b253ebe7db4 (diff)
downloadcoinosv3-833cfd2459aa8d668b787a421414dd5376bb7882.tar.gz
coinosv3-833cfd2459aa8d668b787a421414dd5376bb7882.zip
Tidy tx details layout on mobile
Fix the key/value rows wrapping awkwardly on narrow screens (right-align + wrap-safe values, fixed-width key). Drop the redundant "When: Unconfirmed…" line; pending now shows a single "Status: Pending (in mempool)". Confirmed txs show Status / Block / Date. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/app.js b/src/app.js
index c5a9836..9afaf27 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1048,9 +1048,6 @@ function historyTab() {
function txDetailView(t) {
const incoming = t.net >= 0;
- const when = t.confirmed && t.blockTime
- ? new Date(t.blockTime * 1000).toLocaleString() + ' · ' + timeAgo(t.blockTime)
- : 'Unconfirmed — waiting to be mined';
const line = (k, v) => h('div', { class: 'line' }, h('span', { class: 'k' }, k), h('span', { class: 'v' }, v));
return h(
'div',
@@ -1064,8 +1061,9 @@ function txDetailView(t) {
' ', unitTag('unit')
),
h('div', { class: 'summary col', style: 'gap:0' },
- line('Status', t.confirmed ? `Confirmed (block ${t.blockHeight || '—'})` : 'In mempool'),
- line('When', when),
+ line('Status', t.confirmed ? 'Confirmed' : 'Pending (in mempool)'),
+ t.confirmed ? line('Block', String(t.blockHeight || '—')) : null,
+ t.confirmed && t.blockTime ? line('Date', new Date(t.blockTime * 1000).toLocaleString()) : null,
!incoming && t.fee ? line('Network fee', fmtAmount(t.fee) + ' ' + unitLabel()) : null
),
h('div', { class: 'col gap6' },
@@ -1128,3 +1126,4 @@ if (!restoreSession()) render();
+