chore: add Tailwind CSS configuration file. ux writing update
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
|
||||
<ng-template #header let-columns>
|
||||
<tr>
|
||||
@if (showIndex) {
|
||||
<th [style]="{ width: '3rem', minWidth: '3rem' }"></th>
|
||||
}
|
||||
@for (col of columns; track col.header) {
|
||||
<th
|
||||
[style]="
|
||||
@@ -40,11 +43,14 @@
|
||||
|
||||
<ng-template #body let-item let-i="rowIndex" let-expanded="expanded">
|
||||
<tr>
|
||||
<td>
|
||||
@if (showIndex) {
|
||||
{{ i * (currentPage || 1) + 1 }}
|
||||
}
|
||||
</td>
|
||||
@for (col of columns; track col.field) {
|
||||
<td>
|
||||
@if (col.type === "index") {
|
||||
{{ i * (currentPage || 1) + 1 }}
|
||||
} @else if (col.type === "thumbnail") {
|
||||
@if (col.type === "thumbnail") {
|
||||
<div
|
||||
class="w-20 h-20 rounded-2xl overflow-hidden bg-surface-50 cursor-pointer"
|
||||
(click)="openThumbnailModal(item)"
|
||||
|
||||
Reference in New Issue
Block a user