Update video cards to display descriptions more consistently

Refactor VideoCard component to reliably display video descriptions, removing conditional logic that previously relied on title parsing.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/HwcENYL
This commit is contained in:
sebastjanartic 2025-09-17 07:28:04 +00:00
parent 2a300c0d59
commit 12a8b8c1f5
2 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -351,11 +351,11 @@ export default function VideoCard({ video, onClick, className = "", hideOverlay
</div>
{/* Description with expand/collapse */}
{(video.title.split(' - ')[1] || video.description) && (
{video.description && (
<div className="text-white/70 text-sm">
<div className="flex items-end">
<p className={`flex-1 ${showMoreInfo ? '' : 'line-clamp-1'}`}>
{video.title.split(' - ')[1] || video.description || ''}
{video.description || ''}
</p>
{!showMoreInfo && (
<button