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:
parent
2a300c0d59
commit
12a8b8c1f5
BIN
attached_assets/image_1758094035214.png
Normal file
BIN
attached_assets/image_1758094035214.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user