table fix
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</app-section-card>
|
||||
|
||||
<app-section-card class="diff-configs-table-section" [title]="'diffConfigs.tableTitle' | translate" [subtitle]="'diffConfigs.tableSubtitle' | translate">
|
||||
<p-table [value]="exportFiles" [loading]="loading" [rows]="8" [paginator]="exportFiles.length > 8" responsiveLayout="scroll" styleClass="app-table repository-table">
|
||||
<p-table [value]="exportFiles" [loading]="loading" [rows]="8" [paginator]="exportFiles.length > 8" responsiveLayout="stack" [breakpoint]="'960px'" styleClass="app-table repository-table">
|
||||
<ng-template pTemplate="header">
|
||||
<tr>
|
||||
<th>{{ 'files.fileColumn' | translate }}</th>
|
||||
@@ -74,18 +74,22 @@
|
||||
<ng-template pTemplate="body" let-item>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="p-column-title">{{ 'files.fileColumn' | translate }}</span>
|
||||
<div class="table-primary">{{ item.file_name }}</div>
|
||||
<small class="table-secondary">{{ 'files.checksum' | translate }}: {{ checksumShort(item.checksum) }}</small>
|
||||
</td>
|
||||
<td>
|
||||
<span class="p-column-title">{{ 'files.routerColumn' | translate }}</span>
|
||||
<div class="table-primary">{{ item.router_name || item.router_id }}</div>
|
||||
<small class="table-secondary">ID {{ item.router_id }}</small>
|
||||
</td>
|
||||
<td>
|
||||
<span class="p-column-title">{{ 'files.createdColumn' | translate }}</span>
|
||||
<div class="table-primary">{{ item.created_at | date: 'dd.MM.yyyy HH:mm' }}</div>
|
||||
<small class="table-secondary">{{ relativeAge(item.created_at) }}</small>
|
||||
</td>
|
||||
<td>
|
||||
<span class="p-column-title">{{ 'files.compareColumn' | translate }}</span>
|
||||
<div class="table-actions table-actions--labels table-actions--stack">
|
||||
<button pButton type="button" size="small" styleClass="table-action-btn table-action-btn--wide" severity="secondary" icon="pi pi-arrow-left" [label]="'files.setOlder' | translate" (click)="assignCompare('left', item)"></button>
|
||||
<button pButton type="button" size="small" styleClass="table-action-btn table-action-btn--wide" severity="secondary" icon="pi pi-arrow-right" [label]="'files.setNewer' | translate" (click)="assignCompare('right', item)"></button>
|
||||
|
||||
Reference in New Issue
Block a user