diff --git a/webapp/src/app/modules/news-detail/news-detail.component.html b/webapp/src/app/modules/news-detail/news-detail.component.html index 4def966a..765130d2 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.html +++ b/webapp/src/app/modules/news-detail/news-detail.component.html @@ -87,6 +87,13 @@ [attr.aria-expanded]="personsOpen"> group Erwähnte Personen + info_outline @if (article.authors?.length) { {{ article.authors!.length }} } @@ -140,6 +147,13 @@ [attr.aria-expanded]="topicsOpen"> label Themen & Schlüsselwörter + info_outline @if (article.topics?.length) { {{ article.topics!.length }} } @@ -185,7 +199,8 @@ »{{ topic.source_keyword }}«

- Im Artikel hervorgehoben · klicken zum Springen + Im Artikel hervorgehoben · klicken zum Suche zu + öffnen

} @else {

diff --git a/webapp/src/app/modules/news-detail/news-detail.component.scss b/webapp/src/app/modules/news-detail/news-detail.component.scss index 5644c644..413dfc53 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.scss +++ b/webapp/src/app/modules/news-detail/news-detail.component.scss @@ -211,6 +211,20 @@ main { font-weight: 700; } +.info-icon { + flex-shrink: 0; + font-size: 16px; + width: 16px; + height: 16px; + color: var(--sg-text-muted); + opacity: 0.7; + cursor: default; + + &:hover { + opacity: 1; + } +} + .chevron { transition: transform 0.2s ease; color: var(--sg-text-muted) !important; @@ -374,6 +388,8 @@ main { .kw-pill { display: inline-flex; align-items: center; + justify-content: center; + width: 100%; padding: 6px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--t) 50%, #ffffff); diff --git a/webapp/src/app/modules/news-detail/news-detail.component.ts b/webapp/src/app/modules/news-detail/news-detail.component.ts index 850e131e..1f80ee7a 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.ts +++ b/webapp/src/app/modules/news-detail/news-detail.component.ts @@ -12,6 +12,7 @@ import { ActivatedRoute, RouterLink } from '@angular/router'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; +import { MatTooltipModule } from '@angular/material/tooltip'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; @@ -52,6 +53,7 @@ interface NewsArticleDetail { MatButtonModule, MatIconModule, MatProgressSpinnerModule, + MatTooltipModule, RouterLink, NgClass, ],