Fix: only show colon on cards if correspondent and title shown (#7893)

This commit is contained in:
shamoon
2024-10-10 15:07:52 -07:00
committed by GitHub
parent 2353f7c2db
commit 2994f3a740
3 changed files with 24 additions and 20 deletions

View File

@@ -21,7 +21,7 @@
} @else {
{{(document.correspondent$ | async)?.name}}
}
:
@if (displayFields.includes(DisplayField.TITLE)) {:}
}
@if (displayFields.includes(DisplayField.TITLE)) {
{{document.title | documentTitle}}

View File

@@ -35,7 +35,8 @@
<div class="card-body bg-light p-2">
<p class="card-text">
@if (displayFields.includes(DisplayField.CORRESPONDENT) && document.correspondent) {
<a title="Toggle correspondent filter" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name ?? privateName}}</a>:
<a title="Toggle correspondent filter" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name ?? privateName}}</a>
@if (displayFields.includes(DisplayField.TITLE)) {:}
}
@if (displayFields.includes(DisplayField.TITLE)) {
{{document.title | documentTitle}}