diff --git a/client/src/components/video-card.tsx b/client/src/components/video-card.tsx index be982e0..d19e8b4 100644 --- a/client/src/components/video-card.tsx +++ b/client/src/components/video-card.tsx @@ -122,7 +122,7 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP return (
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} onTouchStart={() => setIsHovered(true)} @@ -130,7 +130,7 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP > {/* Video preview container */}
onClick?.(video)} > {/* Static thumbnail - always visible */} @@ -205,6 +205,16 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
)} + {/* Title overlay - positioned above duration */} +
+
{video.title}
+
+ {formatViews(video.views)} + + {formatDate(video.createdAt)} +
+
+ {/* Duration badge */}
{formatDuration(video.duration)} @@ -212,23 +222,6 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
-
-

onClick?.(video)} - data-testid={`text-title-${video.id}`} - > - {video.title} -

-
- - {formatViews(video.views)} - - - {formatDate(video.createdAt)} - -
-
); }