feat(news): add info icon to accordions
This commit is contained in:
@@ -87,6 +87,13 @@
|
||||
[attr.aria-expanded]="personsOpen">
|
||||
<mat-icon>group</mat-icon>
|
||||
<span class="accordion-title">Erwähnte Personen</span>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
matTooltip="Personen, die im Text erwähnt wurden. Klicke auf eine der UDE angehörige Person, um zu ihrem Profil zu gelangen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>info_outline</mat-icon
|
||||
>
|
||||
@if (article.authors?.length) {
|
||||
<span class="count-badge">{{ article.authors!.length }}</span>
|
||||
}
|
||||
@@ -140,6 +147,13 @@
|
||||
[attr.aria-expanded]="topicsOpen">
|
||||
<mat-icon>label</mat-icon>
|
||||
<span class="accordion-title">Themen & Schlüsselwörter</span>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
matTooltip="Themen, die mit den extrahierten Schlüsselwörtern des Artikels assoziiert werden. Klicke auf ein Schlüsselwort, um zum hervorgehobenen Begriff im Text zu springen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>info_outline</mat-icon
|
||||
>
|
||||
@if (article.topics?.length) {
|
||||
<span class="count-badge">{{ article.topics!.length }}</span>
|
||||
}
|
||||
@@ -185,7 +199,8 @@
|
||||
»{{ topic.source_keyword }}«
|
||||
</button>
|
||||
<p class="kw-hint">
|
||||
Im Artikel hervorgehoben · klicken zum Springen
|
||||
Im Artikel hervorgehoben · klicken zum Suche zu
|
||||
öffnen
|
||||
</p>
|
||||
} @else {
|
||||
<p class="placeholder">
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user