From d4601dd97203b97cc4db24dafa9a4308f9fcf83e Mon Sep 17 00:00:00 2001 From: ronitjadhav Date: Fri, 22 Nov 2024 12:13:14 +0100 Subject: [PATCH] Added fixed width to the columns checkbox --- .../interactive-table/interactive-table.component.ts | 6 +++++- .../src/lib/results-table/results-table.component.html | 10 +++------- libs/util/shared/src/lib/links/link-utils.ts | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts b/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts index c4f24ee5f..68cdde2d3 100644 --- a/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +++ b/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts @@ -36,7 +36,11 @@ export class InteractiveTableComponent { return { 'grid-template-columns': this.columns .map((column) => - column.width ? column.width : column.grow ? `minmax(0px,1fr)` : `minmax(0px,max-content)` + column.width + ? column.width + : column.grow + ? `minmax(0px,1fr)` + : `minmax(0px,max-content)` ) .join(' '), } diff --git a/libs/ui/search/src/lib/results-table/results-table.component.html b/libs/ui/search/src/lib/results-table/results-table.component.html index a58b57c2d..72f94ab11 100644 --- a/libs/ui/search/src/lib/results-table/results-table.component.html +++ b/libs/ui/search/src/lib/results-table/results-table.component.html @@ -3,7 +3,7 @@ (itemClick)="handleRecordClick($event)" > - + - + record.metadata.formats @@ -105,9 +103,7 @@ - + record.metadata.status diff --git a/libs/util/shared/src/lib/links/link-utils.ts b/libs/util/shared/src/lib/links/link-utils.ts index 81d178992..5e1fa9799 100644 --- a/libs/util/shared/src/lib/links/link-utils.ts +++ b/libs/util/shared/src/lib/links/link-utils.ts @@ -117,7 +117,6 @@ export const FORMATS = { }, } as const - export type FileFormat = keyof typeof FORMATS export function getFormatPriority(linkFormat: FileFormat): number {