Skip to content

Commit

Permalink
💄 Fix video resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Sep 14, 2024
1 parent 4d53d18 commit e0a46ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/common/video/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ export default function VideoPlayer({

return (
<figure
className="flex-1"
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<video
poster={thumbnail}
ref={ref}
style={{ flex: 1 }}
playsInline
preload="none"
controls
loop
muted
crossOrigin="anonymous"
className={`transition-all duration-300 ease-in-out ${
className={`w-full flex-1 transition-all duration-300 ease-in-out ${
isHovered || !shouldBlur ? 'blur-none' : 'blur-md'
}`}
aria-labelledby={alt ? figId : undefined}
Expand Down

0 comments on commit e0a46ae

Please sign in to comment.