From 42dceb0cd6b29f1e4982663153288ed4c08834d1 Mon Sep 17 00:00:00 2001 From: 9qeklajc Date: Wed, 22 Apr 2026 21:57:29 +0200 Subject: [PATCH] make table scrollable --- ui/app/transactions/page.tsx | 213 ++++++++++++++++++----------------- 1 file changed, 108 insertions(+), 105 deletions(-) diff --git a/ui/app/transactions/page.tsx b/ui/app/transactions/page.tsx index 8c8f75e2..ffdc4ebb 100644 --- a/ui/app/transactions/page.tsx +++ b/ui/app/transactions/page.tsx @@ -31,7 +31,7 @@ import { TableHeader, TableRow, } from '@/components/ui/table'; -import { ScrollArea } from '@/components/ui/scroll-area'; +import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area'; import { Skeleton } from '@/components/ui/skeleton'; import { Empty, @@ -86,111 +86,114 @@ function TransactionTable({ return ( - - - - Type - Amount - Status - API Key - Request ID - Mint - Date - Actions - - - - {transactions.map((tx) => ( - - -
- {tx.type === 'in' ? ( - - ) : ( - - )} - {tx.type} -
-
- - {tx.amount} {tx.unit} - - {getStatusBadge(tx)} - - {tx.api_key_hashed_key ? ( -
- - {tx.api_key_hashed_key.slice(0, 12)}... - - -
- ) : ( - — - )} -
- - {tx.request_id ? ( -
- - {tx.request_id} - - -
- ) : ( - — - )} -
- -
- {tx.mint_url} -
-
- - {format(tx.created_at * 1000, 'yyyy-MM-dd HH:mm:ss')} - - - - +
+
+ + + Type + Amount + Status + API Key + Request ID + Mint + Date + Actions - ))} - -
+ + + {transactions.map((tx) => ( + + +
+ {tx.type === 'in' ? ( + + ) : ( + + )} + {tx.type} +
+
+ + {tx.amount} {tx.unit} + + {getStatusBadge(tx)} + + {tx.api_key_hashed_key ? ( +
+ + {tx.api_key_hashed_key.slice(0, 12)}... + + +
+ ) : ( + — + )} +
+ + {tx.request_id ? ( +
+ + {tx.request_id} + + +
+ ) : ( + — + )} +
+ +
+ {tx.mint_url} +
+
+ + {format(tx.created_at * 1000, 'yyyy-MM-dd HH:mm:ss')} + + + + +
+ ))} +
+ + +
); }