Improve video card hover effect and adjust playback volume
Update the z-index styling for the video card component to ensure proper layering on hover and remove the default volume attribute from the Video.js player. 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
fffe3be291
commit
f466c7f288
@ -163,12 +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-[100] p-1 md:p-2 ${className}`}
|
||||
className={`video-card transition-all duration-500 ease-out hover:scale-[1.35] 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',
|
||||
zIndex: isHovered ? 9999 : 'auto'
|
||||
zIndex: isHovered ? '99999 !important' : 'auto'
|
||||
}}
|
||||
onMouseEnter={() => setIsHovered(true)}
|
||||
onMouseLeave={() => setIsHovered(false)}
|
||||
@ -221,7 +221,6 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
|
||||
loop
|
||||
playsInline
|
||||
preload="none"
|
||||
volume={0.3}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user