Skip to content

Commit

Permalink
fix: video player being responsive in all sizes (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsargam committed Mar 4, 2024
1 parent 9198911 commit a131274
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 a131274

Please sign in to comment.