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.spec.ts b/libs/util/shared/src/lib/links/link-utils.spec.ts index 91055ecf1..6a276cef8 100644 --- a/libs/util/shared/src/lib/links/link-utils.spec.ts +++ b/libs/util/shared/src/lib/links/link-utils.spec.ts @@ -202,11 +202,11 @@ describe('link utils', () => { }) describe('#getBadgeColor for format', () => { - it('returns #1e5180', () => { - expect(getBadgeColor('json')).toEqual('#1e5180') + it('returns #b3cde8', () => { + expect(getBadgeColor('json')).toEqual('#b3cde8') }) - it('returns #559d7f', () => { - expect(getBadgeColor('csv')).toEqual('#559d7f') + it('returns #a6d6c0', () => { + expect(getBadgeColor('csv')).toEqual('#a6d6c0') }) }) describe('#sortPriority from formats object', () => { 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 {