Adjust video card layout and remove duration display

Modify the `VideoCard` component to adjust the positioning of the title overlay and remove the duration badge.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp
This commit is contained in:
sebastjanartic 2025-08-30 14:34:36 +00:00
parent 83cc193eec
commit 0442820789

View File

@ -207,7 +207,7 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
{/* Title overlay - only show when not playing preview */}
{!showPreview && (
<div className="absolute bottom-8 left-2 right-14 bg-black/70 text-white text-sm px-2 py-1 rounded z-10">
<div className="absolute bottom-2 left-2 right-2 bg-black/70 text-white text-sm px-2 py-1 rounded z-10">
<div className="truncate font-medium">{video.title}</div>
<div className="text-xs text-white/80 flex items-center space-x-2">
<span>{formatViews(video.views)}</span>
@ -217,10 +217,6 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
</div>
)}
{/* Duration badge */}
<div className="absolute bottom-2 right-2 bg-black/70 text-white text-xs px-2 py-1 rounded z-10">
{formatDuration(video.duration)}
</div>
</div>