Improve display of song titles on the history page

Update the `GeschichteLiedPage` component to correctly parse and display song titles, specifically handling cases where titles might include additional identifiers like " - ".

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/OdlP8Wj
This commit is contained in:
sebastjanartic 2025-09-03 09:14:00 +00:00
parent 5716c576c6
commit f090585f59

View File

@ -244,7 +244,11 @@ export default function GeschichteLiedPage() {
{/* Video Description */} {/* Video Description */}
<div className="md:col-span-2 space-y-3"> <div className="md:col-span-2 space-y-3">
<h3 className="text-xl font-bold text-white">{video.title}</h3> <h3 className="text-xl font-bold text-white">
{video.title.includes(' - ')
? video.title.split(' - ')[1] || video.title
: video.title}
</h3>
<p className="text-bunny-light text-sm leading-relaxed"> <p className="text-bunny-light text-sm leading-relaxed">
{video.description || "Keine Beschreibung für diese Sendung verfügbar."} {video.description || "Keine Beschreibung für diese Sendung verfügbar."}
</p> </p>