From 295660139bbc0958dfd68a654bbf0da658d70f59 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Sat, 13 Apr 2024 18:59:38 +0100 Subject: [PATCH] Formatted non-intrusive table --- .../building-passport/FeatureTable.tsx | 26 ++++++++++--------- .../building-passport/FeatureTableColumns.tsx | 2 ++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/app/components/building-passport/FeatureTable.tsx b/src/app/components/building-passport/FeatureTable.tsx index 49e5ab4..58ac1b7 100644 --- a/src/app/components/building-passport/FeatureTable.tsx +++ b/src/app/components/building-passport/FeatureTable.tsx @@ -46,18 +46,20 @@ export default function FeatureTable< {table.getHeaderGroups().map((headerGroup) => ( - {headerGroup.headers.map((header) => { - return ( - - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext() - )} - - ); - })} + {headerGroup.headers.map((header) => ( + + {flexRender( + header.column.columnDef.header, + header.getContext() + )} + + ))} ))} diff --git a/src/app/components/building-passport/FeatureTableColumns.tsx b/src/app/components/building-passport/FeatureTableColumns.tsx index 827723f..f287c8e 100644 --- a/src/app/components/building-passport/FeatureTableColumns.tsx +++ b/src/app/components/building-passport/FeatureTableColumns.tsx @@ -47,6 +47,7 @@ export const generalColumns: ColumnDef[] = [ { accessorKey: "feature", header: "Feature", + size: 100, }, { accessorKey: "description", @@ -58,6 +59,7 @@ export const nonInstrusiveColumns: ColumnDef[] = [ { accessorKey: "title", header: "Feature", + size: 100, }, { accessorKey: "note",