Use tailwind classes for table column widths
All checks were successful
build / build (push) Successful in 1m13s
All checks were successful
build / build (push) Successful in 1m13s
This commit is contained in:
@@ -2,11 +2,3 @@
|
|||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default column widths */
|
|
||||||
th,
|
|
||||||
td {
|
|
||||||
width: 200px;
|
|
||||||
max-width: 200px;
|
|
||||||
min-width: 200px;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ import { InputIconModule } from 'primeng/inputicon';
|
|||||||
pReorderableColumn
|
pReorderableColumn
|
||||||
pResizableColumn
|
pResizableColumn
|
||||||
[pSortableColumn]="col.name"
|
[pSortableColumn]="col.name"
|
||||||
|
class="w-3xs min-w-3xs max-w-3xs"
|
||||||
>
|
>
|
||||||
{{ col.name }}
|
{{ col.name }}
|
||||||
<p-columnFilter type="text" [field]="col.name" display="menu" />
|
<p-columnFilter type="text" [field]="col.name" display="menu" />
|
||||||
@@ -72,7 +73,7 @@ import { InputIconModule } from 'primeng/inputicon';
|
|||||||
<ng-template #body let-rowData let-columns="columns">
|
<ng-template #body let-rowData let-columns="columns">
|
||||||
<tr style="height: 46px">
|
<tr style="height: 46px">
|
||||||
@for (col of columns; track $index) {
|
@for (col of columns; track $index) {
|
||||||
<td pReorderableRowHandle>
|
<td pReorderableRowHandle class="w-3xs min-w-3xs max-w-3xs">
|
||||||
{{ rowData[col.name] }}
|
{{ rowData[col.name] }}
|
||||||
</td>
|
</td>
|
||||||
}
|
}
|
||||||
@@ -81,7 +82,7 @@ import { InputIconModule } from 'primeng/inputicon';
|
|||||||
<ng-template #loadingbody let-columns="columns">
|
<ng-template #loadingbody let-columns="columns">
|
||||||
<tr style="height: 46px">
|
<tr style="height: 46px">
|
||||||
@for (col of columns; track $index) {
|
@for (col of columns; track $index) {
|
||||||
<td>
|
<td class="w-3xs min-w-3xs max-w-3xs">
|
||||||
<p-skeleton />
|
<p-skeleton />
|
||||||
</td>
|
</td>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user