Enlarge video cards when hovering over them with the mouse

Update the `VideoCard` component to scale and elevate the card on hover using Tailwind CSS transitions for a better user experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/P3O2FU7
This commit is contained in:
sebastjanartic 2025-08-29 10:45:09 +00:00
parent 0e790f5932
commit 1bc6717c37

View File

@ -159,7 +159,7 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
return (
<div
data-testid={`card-video-${video.id}`}
className={`video-card transition-all duration-300 p-1 md:p-2 ${className}`}
className={`video-card transition-all duration-300 hover:scale-125 hover:z-50 hover:-translate-y-4 p-1 md:p-2 ${className}`}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>