Skip to content

Commit cc24346

Browse files
LWLP-925: set column widths for package coverage table
1 parent a6233b2 commit cc24346

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Pages/Lightwell/Coverage/components/PackageCoverageTable.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ const PackageCoverageTable = ({ uuid, ecosystems }: PackageCoverageTableProps) =
9090
isError,
9191
});
9292

93-
const dataViewColumns: DataViewTh[] = COLUMNS.map((name) => ({ cell: name }));
93+
const dataViewColumns: DataViewTh[] = COLUMNS.map((name, index) => ({
94+
cell: name,
95+
props: { width: ([40, 20, 20, 20] as const)[index] },
96+
}));
9497
const dataViewRows: DataViewTrObject[] = packages.map((pkg: CoverageReportPackage) => {
9598
const { text, color } = MATCH_STATUS_LABEL[pkg.match_status];
9699
return {

0 commit comments

Comments
 (0)