mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Fix: only use pointer for sortable table headings, fix title width
This commit is contained in:
parent
68ca27c27c
commit
ac666df4ce
@ -161,7 +161,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<th></th>
|
<th></th>
|
||||||
@if (activeDisplayFields.includes(DisplayField.ASN)) {
|
@if (activeDisplayFields.includes(DisplayField.ASN)) {
|
||||||
<th class="d-none d-lg-table-cell"
|
<th class="d-none d-lg-table-cell cursor-pointer"
|
||||||
pngxSortable="archive_serial_number"
|
pngxSortable="archive_serial_number"
|
||||||
title="Sort by ASN" i18n-title
|
title="Sort by ASN" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -170,7 +170,7 @@
|
|||||||
i18n>ASN</th>
|
i18n>ASN</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.CORRESPONDENT) && permissionService.currentUserCan(PermissionAction.View, PermissionType.Correspondent)) {
|
@if (activeDisplayFields.includes(DisplayField.CORRESPONDENT) && permissionService.currentUserCan(PermissionAction.View, PermissionType.Correspondent)) {
|
||||||
<th class="d-none d-md-table-cell"
|
<th class="d-none d-md-table-cell cursor-pointer"
|
||||||
pngxSortable="correspondent__name"
|
pngxSortable="correspondent__name"
|
||||||
title="Sort by correspondent" i18n-title
|
title="Sort by correspondent" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -179,7 +179,7 @@
|
|||||||
i18n>Correspondent</th>
|
i18n>Correspondent</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.TITLE)) {
|
@if (activeDisplayFields.includes(DisplayField.TITLE)) {
|
||||||
<th
|
<th class="cursor-pointer"
|
||||||
pngxSortable="title"
|
pngxSortable="title"
|
||||||
title="Sort by title" i18n-title
|
title="Sort by title" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -191,7 +191,7 @@
|
|||||||
<th i18n>Tags</th>
|
<th i18n>Tags</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.OWNER) && permissionService.currentUserCan(PermissionAction.View, PermissionType.User)) {
|
@if (activeDisplayFields.includes(DisplayField.OWNER) && permissionService.currentUserCan(PermissionAction.View, PermissionType.User)) {
|
||||||
<th class="d-none d-xl-table-cell"
|
<th class="d-none d-xl-table-cell cursor-pointer"
|
||||||
pngxSortable="owner"
|
pngxSortable="owner"
|
||||||
title="Sort by owner" i18n-title
|
title="Sort by owner" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -200,7 +200,7 @@
|
|||||||
i18n>Owner</th>
|
i18n>Owner</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.NOTES) && notesEnabled) {
|
@if (activeDisplayFields.includes(DisplayField.NOTES) && notesEnabled) {
|
||||||
<th class="d-none d-xl-table-cell"
|
<th class="d-none d-xl-table-cell cursor-pointer"
|
||||||
pngxSortable="num_notes"
|
pngxSortable="num_notes"
|
||||||
title="Sort by notes" i18n-title
|
title="Sort by notes" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -209,7 +209,7 @@
|
|||||||
i18n>Notes</th>
|
i18n>Notes</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.DOCUMENT_TYPE) && permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) {
|
@if (activeDisplayFields.includes(DisplayField.DOCUMENT_TYPE) && permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) {
|
||||||
<th class="d-none d-xl-table-cell"
|
<th class="d-none d-xl-table-cell cursor-pointer"
|
||||||
pngxSortable="document_type__name"
|
pngxSortable="document_type__name"
|
||||||
title="Sort by document type" i18n-title
|
title="Sort by document type" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -218,7 +218,7 @@
|
|||||||
i18n>Document type</th>
|
i18n>Document type</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.STORAGE_PATH) && permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) {
|
@if (activeDisplayFields.includes(DisplayField.STORAGE_PATH) && permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) {
|
||||||
<th class="d-none d-xl-table-cell"
|
<th class="d-none d-xl-table-cell cursor-pointer"
|
||||||
pngxSortable="storage_path__name"
|
pngxSortable="storage_path__name"
|
||||||
title="Sort by storage path" i18n-title
|
title="Sort by storage path" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -227,7 +227,7 @@
|
|||||||
i18n>Storage path</th>
|
i18n>Storage path</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.CREATED)) {
|
@if (activeDisplayFields.includes(DisplayField.CREATED)) {
|
||||||
<th
|
<th class="cursor-pointer"
|
||||||
pngxSortable="created"
|
pngxSortable="created"
|
||||||
title="Sort by created date" i18n-title
|
title="Sort by created date" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -236,7 +236,7 @@
|
|||||||
i18n>Created</th>
|
i18n>Created</th>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.ADDED)) {
|
@if (activeDisplayFields.includes(DisplayField.ADDED)) {
|
||||||
<th
|
<th class="cursor-pointer"
|
||||||
pngxSortable="added"
|
pngxSortable="added"
|
||||||
title="Sort by added date" i18n-title
|
title="Sort by added date" i18n-title
|
||||||
[currentSortField]="list.sortField"
|
[currentSortField]="list.sortField"
|
||||||
@ -277,7 +277,7 @@
|
|||||||
</td>
|
</td>
|
||||||
}
|
}
|
||||||
@if (activeDisplayFields.includes(DisplayField.TITLE) || activeDisplayFields.includes(DisplayField.TAGS)) {
|
@if (activeDisplayFields.includes(DisplayField.TITLE) || activeDisplayFields.includes(DisplayField.TAGS)) {
|
||||||
<td>
|
<td width="30%">
|
||||||
@if (activeDisplayFields.includes(DisplayField.TITLE)) {
|
@if (activeDisplayFields.includes(DisplayField.TITLE)) {
|
||||||
<a routerLink="/documents/{{d.id}}" title="Edit document" i18n-title style="overflow-wrap: anywhere;">{{d.title | documentTitle}}</a>
|
<a routerLink="/documents/{{d.id}}" title="Edit document" i18n-title style="overflow-wrap: anywhere;">{{d.title | documentTitle}}</a>
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ tr {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
.cursor-pointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user