Skip to content

Commit

Permalink
Merge pull request #153 from devsargam/main
Browse files Browse the repository at this point in the history
fix: video player being responsive in all sizes (#144)
  • Loading branch information
hkirat authored Mar 6, 2024
2 parents 0b98937 + a131274 commit 7a63114
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/VideoPlayer2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
}
}, [searchParams, playerRef.current]);
return (
<div data-vjs-player>
<div
data-vjs-player
className="mx-auto md:max-w-[calc(100vw-3rem)] 2xl:max-w-[calc(100vw-17rem)]"
>
<div ref={videoRef} />
</div>
);
Expand Down

0 comments on commit 7a63114

Please sign in to comment.