Improve video card scaling and layering behavior for a better viewing experience
Updates the z-index and hover effects for video cards in `client/src/components/video-card.tsx` to ensure proper layering when scaled, addressing an issue where cards would overlap incorrectly. 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/mZpi7Z1
This commit is contained in:
parent
57287e7ec3
commit
fffe3be291
@ -163,11 +163,12 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
|
||||
return (
|
||||
<div
|
||||
data-testid={`card-video-${video.id}`}
|
||||
className={`video-card transition-all duration-500 ease-out hover:scale-[1.35] hover:z-50 p-1 md:p-2 ${className}`}
|
||||
className={`video-card transition-all duration-500 ease-out hover:scale-[1.35] hover:z-[100] p-1 md:p-2 ${className}`}
|
||||
style={{
|
||||
transformStyle: 'preserve-3d',
|
||||
transition: 'transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0.1s ease',
|
||||
willChange: 'transform'
|
||||
willChange: 'transform',
|
||||
zIndex: isHovered ? 9999 : 'auto'
|
||||
}}
|
||||
onMouseEnter={() => setIsHovered(true)}
|
||||
onMouseLeave={() => setIsHovered(false)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user