chore(ui): add tailwind 4.3 and update classes (#1379)

This commit is contained in:
Alex
2026-05-19 06:43:10 +01:00
committed by GitHub
parent c926582e56
commit 398b1fa590
42 changed files with 463 additions and 194 deletions
@@ -374,7 +374,7 @@
@if (book?.shelves?.length) {
<div class="metadata-item">
<span class="metadata-key">{{ t('shelvesLabel') }}</span>
<div class="metadata-value-group flex-wrap">
<div class="metadata-value-group">
@for (shelf of book.shelves; track shelf.id; let isLast = $last) {
<span class="metadata-value metadata-link" role="button" tabindex="0" (click)="goToShelf(shelf.id!)" (keydown.enter)="goToShelf(shelf.id!)">
{{ shelf.name }}
@@ -716,7 +716,7 @@
<span>{{ t('synopsisTitle') }}</span>
</div>
<div class="description-body">
<div #descriptionContent [ngClass]="{ 'line-clamp-7': !isExpanded }" class="description-content">
<div #descriptionContent [ngClass]="{ 'description-content-collapsed': !isExpanded }" class="description-content">
<div class="description-html" [innerHTML]="sanitizeDescription(book.metadata!.description)"></div>
</div>
@if (isExpanded || isOverflowing) {
@@ -702,11 +702,11 @@
transition: max-height 0.3s ease-in-out;
}
.description-content.line-clamp-7 {
.description-content.description-content-collapsed {
max-height: 37px;
}
.description-content:not(.line-clamp-7) {
.description-content:not(.description-content-collapsed) {
max-height: none;
}
@@ -31,30 +31,30 @@
</th>
</tr>
<tr>
<td class="table-cell" style="max-width: 70px; width: 70px;"></td>
<td class="table-cell set-all-label" style="max-width: 127px; width: 127px;">{{ t('setAll') }}</td>
<td class="table-cell">
<td class="metadata-table-cell" style="max-width: 70px; width: 70px;"></td>
<td class="metadata-table-cell set-all-label" style="max-width: 127px; width: 127px;">{{ t('setAll') }}</td>
<td class="metadata-table-cell">
<p-select [options]="providersWithClear" [(ngModel)]="bulkP1"
(ngModelChange)="setBulkProvider('p1', $event)"
[placeholder]="t('setAllP1')" appendTo="body"
class="select-full-width" size="small">
</p-select>
</td>
<td class="table-cell">
<td class="metadata-table-cell">
<p-select [options]="providersWithClear" [(ngModel)]="bulkP2"
(ngModelChange)="setBulkProvider('p2', $event)"
[placeholder]="t('setAllP2')" appendTo="body"
class="select-full-width" size="small">
</p-select>
</td>
<td class="table-cell">
<td class="metadata-table-cell">
<p-select [options]="providersWithClear" [(ngModel)]="bulkP3"
(ngModelChange)="setBulkProvider('p3', $event)"
[placeholder]="t('setAllP3')" appendTo="body"
class="select-full-width" size="small">
</p-select>
</td>
<td class="table-cell">
<td class="metadata-table-cell">
<p-select [options]="providersWithClear" [(ngModel)]="bulkP4"
(ngModelChange)="setBulkProvider('p4', $event)"
[placeholder]="t('setAllP4')" appendTo="body"
@@ -66,34 +66,34 @@
<tbody>
@for (field of nonProviderSpecificFields; track field) {
<tr [hidden]="field === 'cover' && !refreshCovers" [class.row-disabled]="!enabledFields[field]">
<td class="table-cell-sm" style="max-width: 70px; width: 70px;">
<td class="metadata-table-cell-sm" style="max-width: 70px; width: 70px;">
<p-checkbox [(ngModel)]="enabledFields[field]" [binary]="true"
[pTooltip]="t('enableFieldTooltip')"
tooltipPosition="top"></p-checkbox>
</td>
<td class="table-cell-sm field-label" style="max-width: 127px; width: 127px;">{{ formatLabel(field) }}</td>
<td class="table-cell-sm">
<td class="metadata-table-cell-sm field-label" style="max-width: 127px; width: 127px;">{{ formatLabel(field) }}</td>
<td class="metadata-table-cell-sm">
<p-select [options]="providers" [(ngModel)]="fieldOptions[field].p1"
[disabled]="!enabledFields[field]"
[placeholder]="t('unset')" appendTo="body"
class="select-full-width" size="small">
</p-select>
</td>
<td class="table-cell-sm">
<td class="metadata-table-cell-sm">
<p-select [options]="providers" [(ngModel)]="fieldOptions[field].p2"
[disabled]="!enabledFields[field]"
[placeholder]="t('unset')" appendTo="body"
class="select-full-width" size="small">
</p-select>
</td>
<td class="table-cell-sm">
<td class="metadata-table-cell-sm">
<p-select [options]="providers" [(ngModel)]="fieldOptions[field].p3"
[disabled]="!enabledFields[field]"
[placeholder]="t('unset')" appendTo="body"
class="select-full-width" size="small">
</p-select>
</td>
<td class="table-cell-sm">
<td class="metadata-table-cell-sm">
<p-select [options]="providers" [(ngModel)]="fieldOptions[field].p4"
[disabled]="!enabledFields[field]"
[placeholder]="t('unset')" appendTo="body"
@@ -26,11 +26,11 @@
font-size: 0.75rem;
}
.table-cell {
.metadata-table-cell {
padding: 0.5rem 1rem;
}
.table-cell-sm {
.metadata-table-cell-sm {
padding: 0.375rem 1rem;
}