From 1068fae78f6f2045ba871a7dd43f29d725ef83d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Mon, 19 Jan 2026 14:11:48 +0100 Subject: [PATCH] style: limit transaction history list width to match wallet UI Add max-w-md constraint to transaction history list to match the width of balance display, send/receive buttons, and detail dialog. Creates a consistent, centered, compact layout throughout the entire wallet interface. Co-Authored-By: Claude Sonnet 4.5 --- src/components/WalletViewer.tsx | 170 +++++++++++++++++--------------- 1 file changed, 88 insertions(+), 82 deletions(-) diff --git a/src/components/WalletViewer.tsx b/src/components/WalletViewer.tsx index f8d6ae6..55e5db7 100644 --- a/src/components/WalletViewer.tsx +++ b/src/components/WalletViewer.tsx @@ -1161,93 +1161,99 @@ export default function WalletViewer() { )} {/* Transaction History */} -
- {walletInfo?.methods.includes("list_transactions") ? ( - loading ? ( -
- -
- ) : txLoadFailed ? ( -
-

- Failed to load transaction history -

- -
- ) : transactionsWithMarkers.length === 0 ? ( -
-

- No transactions found -

-
- ) : ( - { - if (item.type === "day-marker") { +
+
+ {walletInfo?.methods.includes("list_transactions") ? ( + loading ? ( +
+ +
+ ) : txLoadFailed ? ( +
+

+ Failed to load transaction history +

+ +
+ ) : transactionsWithMarkers.length === 0 ? ( +
+

+ No transactions found +

+
+ ) : ( + { + if (item.type === "day-marker") { + return ( +
+ +
+ ); + } + + const tx = item.data; + return (
handleTransactionClick(tx)} > - +
+ {tx.type === "incoming" ? ( + + ) : ( + + )} + +
+
+

+ {state.walletBalancesBlurred + ? "✦✦✦✦" + : formatSats(tx.amount)} +

+
); - } - - const tx = item.data; - - return ( -
handleTransactionClick(tx)} - > -
- {tx.type === "incoming" ? ( - - ) : ( - - )} - -
-
-

- {state.walletBalancesBlurred - ? "✦✦✦✦" - : formatSats(tx.amount)} -

-
-
- ); - }} - components={{ - Footer: () => - loadingMore ? ( -
- -
- ) : !hasMore && transactions.length > 0 ? ( -
- No more transactions -
- ) : null, - }} - /> - ) - ) : ( -
-

- Transaction history not available -

-
- )} + }} + components={{ + Footer: () => + loadingMore ? ( +
+ +
+ ) : !hasMore && transactions.length > 0 ? ( +
+ No more transactions +
+ ) : null, + }} + /> + ) + ) : ( +
+

+ Transaction history not available +

+
+ )} +
{/* Disconnect Confirmation Dialog */}