Feat/1912: visual improvements to validator table (#1949)

* Feat/1912: pinned validator column so that it's unaffected by scrolling

* Feat/1912: spacing
This commit is contained in:
Sam Keen 2022-11-03 15:19:07 +00:00 committed by GitHub
parent 596c273657
commit 999c768090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,7 @@ export const NodeList = () => {
if (a === b) return 0; if (a === b) return 0;
return a > b ? 1 : -1; return a > b ? 1 : -1;
}, },
pinned: 'left',
}, },
{ {
field: STATUS, field: STATUS,
@ -262,6 +263,7 @@ export const NodeList = () => {
sortable: true, sortable: true,
resizable: true, resizable: true,
comparator: (a: string, b: string) => parseFloat(a) - parseFloat(b), comparator: (a: string, b: string) => parseFloat(a) - parseFloat(b),
cellStyle: { margin: '10px 0' },
}), }),
[] []
); );
@ -299,7 +301,7 @@ export const NodeList = () => {
overlayNoRowsTemplate={t('noValidators')} overlayNoRowsTemplate={t('noValidators')}
ref={ref} ref={ref}
rowData={nodes} rowData={nodes}
rowHeight={32} rowHeight={52}
columnDefs={colDefs} columnDefs={colDefs}
defaultColDef={defaultColDef} defaultColDef={defaultColDef}
animateRows={true} animateRows={true}