feat(news): expand search results to include similar results
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user