Skip to content

Commit

Permalink
Added fixed width to the columns checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ronitjadhav committed Nov 22, 2024
1 parent 711cb96 commit d4601dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(' '),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(itemClick)="handleRecordClick($event)"
>
<!-- SELECTED COLUMN -->
<gn-ui-interactive-table-column>
<gn-ui-interactive-table-column [width]="'3rem'">
<ng-template #header>
<gn-ui-checkbox
[checked]="isAllSelected()"
Expand Down Expand Up @@ -52,9 +52,7 @@
</gn-ui-interactive-table-column>

<!-- FORMATS COLUMN -->
<gn-ui-interactive-table-column
[width]="'9rem'"
>
<gn-ui-interactive-table-column [width]="'9rem'">
<ng-template #header>
<span translate>record.metadata.formats</span>
</ng-template>
Expand Down Expand Up @@ -105,9 +103,7 @@
</gn-ui-interactive-table-column>

<!-- STATUS COLUMN -->
<gn-ui-interactive-table-column
[width]="'6rem'"
>
<gn-ui-interactive-table-column [width]="'6rem'">
<ng-template #header>
<span translate>record.metadata.status</span>
</ng-template>
Expand Down
1 change: 0 additions & 1 deletion libs/util/shared/src/lib/links/link-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const FORMATS = {
},
} as const


export type FileFormat = keyof typeof FORMATS

export function getFormatPriority(linkFormat: FileFormat): number {
Expand Down

0 comments on commit d4601dd

Please sign in to comment.