From f01f17dbaf21c7f9d8aeb23825d0ce9e410815f5 Mon Sep 17 00:00:00 2001 From: Steven Tischer Date: Sat, 6 Jun 2026 20:18:27 +0200 Subject: [PATCH] show topic description tooltip in interesting-for card --- .../person-interesting.component.html | 4 +++- .../person-interesting/person-interesting.component.ts | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/webapp/src/app/modules/person-interesting/person-interesting.component.html b/webapp/src/app/modules/person-interesting/person-interesting.component.html index 14767892..2f26336a 100644 --- a/webapp/src/app/modules/person-interesting/person-interesting.component.html +++ b/webapp/src/app/modules/person-interesting/person-interesting.component.html @@ -8,7 +8,9 @@
@if (tags().length > 0) { @for (tag of tags(); track tag.label) { - + } } @else { Keine Themen gefunden diff --git a/webapp/src/app/modules/person-interesting/person-interesting.component.ts b/webapp/src/app/modules/person-interesting/person-interesting.component.ts index 4607210d..6179a384 100644 --- a/webapp/src/app/modules/person-interesting/person-interesting.component.ts +++ b/webapp/src/app/modules/person-interesting/person-interesting.component.ts @@ -1,17 +1,19 @@ import { Component, input, computed } from '@angular/core'; +import { MatTooltipModule } from '@angular/material/tooltip'; import { TopicCount } from '../../api'; interface InterestTag { label: string; count: number; + description: string; } const MAX_TAGS = 5; @Component({ selector: 'app-person-interesting', - imports: [], + imports: [MatTooltipModule], templateUrl: './person-interesting.component.html', styleUrl: './person-interesting.component.scss', }) @@ -26,7 +28,11 @@ export class PersonInterestingComponent { const label = (topic.name ?? '').trim(); if (!label) continue; - tags.push({ label, count: topic.count ?? 0 }); + tags.push({ + label, + count: topic.count ?? 0, + description: (topic.description ?? '').trim(), + }); } return tags.sort((a, b) => b.count - a.count).slice(0, MAX_TAGS);