From 309e83df20d202eaa3c734586c12ad13cf3b4881 Mon Sep 17 00:00:00 2001 From: xfja Date: Thu, 1 Aug 2024 12:21:06 +0200 Subject: [PATCH] feature(web): add fixed columns width to table transactions view (#451) --- apps/web/src/pages/txs.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/web/src/pages/txs.tsx b/apps/web/src/pages/txs.tsx index 683203f20..2069e9674 100644 --- a/apps/web/src/pages/txs.tsx +++ b/apps/web/src/pages/txs.tsx @@ -28,30 +28,39 @@ export const TRANSACTIONS_TABLE_HEADERS = [ cells: [ { item: "Hash", + className: "w-[150px]", }, { item: "Block number", + className: "w-[127px]", }, { item: "Timestamp", + className: "w-[160px]", }, { item: "From", + className: "w-[150px]", }, { item: "To", + className: "w-[148px]", }, { item: "Rollup", + className: "w-[72px]", }, { item: "Blob Base Fee", + className: "w-[172px]", }, { item: "Blob Max Fee", + className: "w-[162px]", }, { item: "Blob Gas Price", + className: "w-[180px]", }, ], }, @@ -261,7 +270,7 @@ const Txs: NextPage = function () { isLoading={isLoading} headers={TRANSACTIONS_TABLE_HEADERS} rows={transactionRows} - totalItems={totalTransactions || 0} + totalItems={totalTransactions} paginationData={{ pageSize: ps, page: p }} isExpandable />