video kartica dobi opis iz teaserja in vrstico Video ansehen, da ni prazna spodaj

This commit is contained in:
2026-08-31 16:25:30 +02:00
parent c17c9b762e
commit 1a35d9a747
+8 -3
View File
@@ -331,7 +331,7 @@ function MobileMosaic({ latest, popular, focalPoints }: { latest: Article[]; pop
);
}
interface YtVideo { ytId: string; slug: string; shortTitle?: string; title: string; rubrik?: string; publishedAt?: string; durationS?: number }
interface YtVideo { ytId: string; slug: string; shortTitle?: string; title: string; rubrik?: string; publishedAt?: string; durationS?: number; teaser?: string }
// Video kartica v mrezi: enaka velikost kot kartica clanka, da v vrstici ni
// luknje. Pelje na /video/<slug>, kjer je oglasni prostor, ne na YouTube.
@@ -369,9 +369,14 @@ function VideoCard({ video }: { video: YtVideo }) {
<h3 className="font-semibold text-card-foreground text-sm leading-snug line-clamp-2 group-hover:text-primary transition-colors">
{video.shortTitle || video.title}
</h3>
<p className="text-xs text-muted-foreground mt-1.5 leading-relaxed flex-1">
Jetzt ansehen auf FOLX TV
<p className="text-xs text-muted-foreground mt-1.5 leading-relaxed flex-1 line-clamp-3">
{(video.teaser || "").replace(/^Musik News aus Schlager & Volksmusik:\s*/i, "") ||
"Jetzt ansehen auf FOLX TV"}
</p>
<div className="flex items-center gap-2 mt-2 text-muted-foreground text-[10px]">
<Play className="w-3 h-3" />
Video ansehen
</div>
</div>
</div>
</Link>