From 068d85e0e2a1b116dc49566fcfb3a4f8ac3c1cc7 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Wed, 24 Jun 2026 15:37:43 +0200 Subject: [PATCH] feat(ui): show full tx inputs/outputs in detail overlay without truncation Input rows switch to a two-line layout (full prev-txid:index on the first line, address + amount on the second) so nothing is cut by a fixed 160px column. Output address column gets TextWrapping instead of TextTrimming. Overlay grows to MaxWidth=660/MaxHeight=800 for better desktop use; the same XAML wraps naturally on narrow mobile screens. Removes the Shorten() helper that was masking input references. Co-Authored-By: Claude Sonnet 4.6 --- .../ViewModels/TransactionDetailsViewModel.cs | 5 +- src/App/Views/MainView.axaml | 53 ++++++++++++------- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/App/ViewModels/TransactionDetailsViewModel.cs b/src/App/ViewModels/TransactionDetailsViewModel.cs index d1860d8..addee17 100644 --- a/src/App/ViewModels/TransactionDetailsViewModel.cs +++ b/src/App/ViewModels/TransactionDetailsViewModel.cs @@ -63,7 +63,7 @@ public sealed class TransactionDetailsViewModel LockTimeText = d.LockTime.ToString(); RbfText = loc[d.RbfSignaled ? "tx.yes" : "tx.no"]; Inputs = new ObservableCollection(d.Inputs.Select((i, n) => new TxIoRow( - i.IsCoinbase ? loc["tx.coinbase"] : $"{Shorten(i.PrevTxid)}:{i.PrevIndex}", + i.IsCoinbase ? loc["tx.coinbase"] : $"{i.PrevTxid}:{i.PrevIndex}", i.IsCoinbase ? loc["tx.coinbase.newcoins"] : i.Address ?? "—", i.AmountSats is { } a ? CoinAmount.FormatIn(a, unit) : "—", i.IsMine))); @@ -108,7 +108,4 @@ public sealed class TransactionDetailsViewModel } private string Abs(long sats) => CoinAmount.FormatIn(Math.Abs(sats), _unit); - - private static string Shorten(string txid) => - txid.Length > 16 ? $"{txid[..8]}…{txid[^4..]}" : txid; } diff --git a/src/App/Views/MainView.axaml b/src/App/Views/MainView.axaml index e209700..28369f5 100644 --- a/src/App/Views/MainView.axaml +++ b/src/App/Views/MainView.axaml @@ -1014,7 +1014,7 @@ IsVisible="{Binding IsTxDetailsOpen}"> @@ -1135,38 +1135,48 @@ - + - - - - - + + + + + + + + - + - + - - + FontFamily="monospace" FontSize="11" + Foreground="{DynamicResource TextMutedBrush}" + VerticalAlignment="Top"/> + + @@ -1545,6 +1555,9 @@ Foreground="{DynamicResource TextSecondaryBrush}"/> +