feat(news): expand search results to include similar results
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit

This commit is contained in:
2026-06-23 00:30:28 +02:00
parent 68bc0cde7f
commit 12377749c2
6 changed files with 230 additions and 15 deletions
@@ -31,6 +31,9 @@
<a class="article-title" [routerLink]="['/news', article.id]">{{
article.maintitle || 'Kein Titel'
}}</a>
@if (article.related) {
<span class="related-badge"> Passend zu deiner Suche </span>
}
</td>
</ng-container>
@@ -79,6 +79,22 @@ table {
}
}
.related-badge {
display: flex;
width: fit-content;
align-items: center;
margin-top: 6px;
padding: 3px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
line-height: 1;
white-space: nowrap;
background: #eef3fe;
border: 1px solid #c5d6f7;
color: #2f5bd0;
}
.loading {
position: absolute;
inset: 0;
@@ -25,6 +25,7 @@ export interface NewsArticleBase {
maintitle?: string | null;
url?: string | null;
relevant?: boolean | null;
related?: boolean | null;
}
export type SortOrder = 'desc' | 'asc';