From 44f1e824e34a303e855487159cb623a5679be21e Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Tue, 23 Aug 2022 14:22:33 +0300 Subject: [PATCH] Use new virtual layout Signed-off-by: Alex Andreev --- .../components/table/virtual-table.tsx | 73 ++++++++++++------- 1 file changed, 46 insertions(+), 27 deletions(-) diff --git a/src/renderer/components/table/virtual-table.tsx b/src/renderer/components/table/virtual-table.tsx index 70ba687728..b28620a3a2 100644 --- a/src/renderer/components/table/virtual-table.tsx +++ b/src/renderer/components/table/virtual-table.tsx @@ -28,33 +28,52 @@ console.log(`${rowVirtualizer.getTotalSize()}px`) return ( -
- - - - {rowVirtualizer.getVirtualItems().map(virtualRow => { - const row = rows[virtualRow.index] as Row - return ( - - {row.getVisibleCells().map(cell => { - return ( - - ) - })} - - ) - })} - -
- {flexRender( - cell.column.columnDef.cell, - cell.getContext() - )} -
-
+ <> +
+ + + + {rowVirtualizer.getVirtualItems().map(virtualRow => { + const row = rows[virtualRow.index] as Row + + return ( +
+ {row.getVisibleCells().map(cell => { + return ( +
+ {flexRender( + cell.column.columnDef.cell, + cell.getContext() + )} +
+ ) + })} +
+ ) + })} +
+
+
+ ) } \ No newline at end of file