From 999c768090d21ac896b786b78b74efcab60f0fc1 Mon Sep 17 00:00:00 2001 From: Sam Keen Date: Thu, 3 Nov 2022 15:19:07 +0000 Subject: [PATCH] Feat/1912: visual improvements to validator table (#1949) * Feat/1912: pinned validator column so that it's unaffected by scrolling * Feat/1912: spacing --- apps/token/src/routes/staking/home/node-list.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/token/src/routes/staking/home/node-list.tsx b/apps/token/src/routes/staking/home/node-list.tsx index 0e8d5fa16..02a318442 100644 --- a/apps/token/src/routes/staking/home/node-list.tsx +++ b/apps/token/src/routes/staking/home/node-list.tsx @@ -202,6 +202,7 @@ export const NodeList = () => { if (a === b) return 0; return a > b ? 1 : -1; }, + pinned: 'left', }, { field: STATUS, @@ -262,6 +263,7 @@ export const NodeList = () => { sortable: true, resizable: true, comparator: (a: string, b: string) => parseFloat(a) - parseFloat(b), + cellStyle: { margin: '10px 0' }, }), [] ); @@ -299,7 +301,7 @@ export const NodeList = () => { overlayNoRowsTemplate={t('noValidators')} ref={ref} rowData={nodes} - rowHeight={32} + rowHeight={52} columnDefs={colDefs} defaultColDef={defaultColDef} animateRows={true}