diff --git a/webapp/src/app/shared/ui/data-table/data-table.component.html b/webapp/src/app/shared/ui/data-table/data-table.component.html index a2ff92f1..781d4681 100644 --- a/webapp/src/app/shared/ui/data-table/data-table.component.html +++ b/webapp/src/app/shared/ui/data-table/data-table.component.html @@ -1,5 +1,6 @@
|
- |
+ @if (col.type === 'accessor') {
+
+ |
+ } @else {
+
+ |
+ }
} @else if (col.type === 'accessor') {
{{ col.header }}
diff --git a/webapp/src/app/shared/ui/data-table/data-table.component.scss b/webapp/src/app/shared/ui/data-table/data-table.component.scss
index d5181d6c..e85887e2 100644
--- a/webapp/src/app/shared/ui/data-table/data-table.component.scss
+++ b/webapp/src/app/shared/ui/data-table/data-table.component.scss
@@ -22,6 +22,42 @@
padding-right: 16px;
}
+.data-table-container.dense {
+ --mat-table-header-container-height: auto;
+ --mat-table-row-item-container-height: auto;
+ --mat-table-footer-container-height: auto;
+
+ .mat-mdc-header-row,
+ .mat-mdc-row {
+ height: auto;
+ min-height: 0;
+ }
+
+ .mat-mdc-header-cell,
+ .mat-mdc-cell {
+ min-height: 0;
+ padding: 2px 8px;
+ font-size: 11.5px;
+ line-height: 1.2;
+ vertical-align: middle;
+ }
+
+ .mat-mdc-header-cell {
+ font-size: 10px;
+ letter-spacing: 0.05em;
+ }
+
+ .mat-mdc-header-cell:first-of-type,
+ .mat-mdc-cell:first-of-type {
+ padding-left: 10px;
+ }
+
+ .mat-mdc-header-cell:last-of-type,
+ .mat-mdc-cell:last-of-type {
+ padding-right: 10px;
+ }
+}
+
.no-data {
display: flex;
justify-content: center;
diff --git a/webapp/src/app/shared/ui/data-table/data-table.component.ts b/webapp/src/app/shared/ui/data-table/data-table.component.ts
index 308a8207..91a1a29b 100644
--- a/webapp/src/app/shared/ui/data-table/data-table.component.ts
+++ b/webapp/src/app/shared/ui/data-table/data-table.component.ts
@@ -72,6 +72,7 @@ export class DataTableComponent |
|---|