video kartica dobi opis iz teaserja in vrstico Video ansehen, da ni prazna spodaj
This commit is contained in:
@@ -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
|
// 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.
|
// 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">
|
<h3 className="font-semibold text-card-foreground text-sm leading-snug line-clamp-2 group-hover:text-primary transition-colors">
|
||||||
{video.shortTitle || video.title}
|
{video.shortTitle || video.title}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-xs text-muted-foreground mt-1.5 leading-relaxed flex-1">
|
<p className="text-xs text-muted-foreground mt-1.5 leading-relaxed flex-1 line-clamp-3">
|
||||||
Jetzt ansehen auf FOLX TV
|
{(video.teaser || "").replace(/^Musik News aus Schlager & Volksmusik:\s*/i, "") ||
|
||||||
|
"Jetzt ansehen auf FOLX TV"}
|
||||||
</p>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user