From c69ebd88f8f90401c444cbd38a0da38652eec8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Thu, 4 Aug 2022 10:49:43 +0200 Subject: [PATCH] fix: fish ladder table: data column not aligned with header refs #500 --- src/app/components/pab-table/pab-table.component.html | 2 +- src/styles.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/pab-table/pab-table.component.html b/src/app/components/pab-table/pab-table.component.html index 98e5b2d43..053f92e43 100644 --- a/src/app/components/pab-table/pab-table.component.html +++ b/src/app/components/pab-table/pab-table.component.html @@ -54,7 +54,7 @@ <p-table id="geometry" [columns]="cols" [value]="rows" class="pab-data-table" [resizableColumns]="false" - [autoLayout]="false" scrollable="false"> + [autoLayout]="true" [scrollable]="false"> <ng-template pTemplate="header" let-columns> <tr> diff --git a/src/styles.scss b/src/styles.scss index 37803da06..78510df55 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -203,7 +203,7 @@ field-set { @extend .bg-error; } - .p-datatable.p-component.p-datatable-scrollable.p-datatable-scrollable-vertical.p-datatable-responsive-stack { + .p-datatable.p-component.p-datatable-auto-layout.p-datatable-responsive-stack { table.p-datatable-table { thead.p-datatable-thead { > tr { -- GitLab