From 1c8095d40e6dc9769a90da208e6fa958408eecfb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 19 Sep 2025 19:12:24 -0500 Subject: [PATCH] Enforce max height on transactions list --- src/components/CreditsDialog.tsx | 107 +++++++++++++------------------ 1 file changed, 46 insertions(+), 61 deletions(-) diff --git a/src/components/CreditsDialog.tsx b/src/components/CreditsDialog.tsx index 1b424d74..2ecf72cc 100644 --- a/src/components/CreditsDialog.tsx +++ b/src/components/CreditsDialog.tsx @@ -409,7 +409,7 @@ export function CreditsDialog({ open, onOpenChange, providerId, connection }: Cr return ( - + {lightningInvoice ? ( @@ -431,18 +431,19 @@ export function CreditsDialog({ open, onOpenChange, providerId, connection }: Cr -
- {/* Lightning Payment Interface */} - {lightningInvoice ? ( + {/* Lightning Payment Interface */} + {lightningInvoice ? ( +
setLightningInvoice(null)} /> - ) : ( - <> - {/* Add Credits Form */} -
+
+ ) : ( +
+ {/* Add Credits Form - Fixed size section */} +
@@ -511,52 +512,42 @@ export function CreditsDialog({ open, onOpenChange, providerId, connection }: Cr Please log in to purchase credits

)} -
- - - - {/* Transaction History */} -
-
-

Recent Transactions

-
- {isLoadingPayments ? ( -
- {Array.from({ length: 3 }).map((_, i) => ( -
-
- - - -
- +
+ +
+ + {/* Transaction History - Flexible section */} +
+
+

Recent Transactions

+
+
+ {isLoadingPayments ? ( +
+ {Array.from({ length: 3 }).map((_, i) => ( +
+
+ + + +
+ +
+ ))}
- ))} -
- ) : !payments || payments.length === 0 ? ( -
- -

No transactions yet

-

Your payment history will appear here

-
- ) : ( -
- {payments.slice(0, 5).map((payment) => ( + ) : !payments || payments.length === 0 ? ( +
+
+ +

No transactions yet

+

Your payment history will appear here

+
+
+ ) : ( +
+ {payments.map((payment) => (
- ))} - - {payments.length > 5 && ( -

- Showing recent 5 transactions -

+ ))} +
)}
- )} +
- - )} -
+ )}
);