Skip to content

Commit

Permalink
fix: make video screen responsive (#1563)
Browse files Browse the repository at this point in the history
* make video fitted as screen

* make responsive
  • Loading branch information
saurabhraghuvanshii authored Nov 17, 2024
1 parent 679f3ff commit ae84752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/VideoPlayer2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
}

return (
<div data-vjs-player className="mx-auto">
<div ref={videoRef} />
<div data-vjs-player style={{ maxWidth: '850px', margin: '0 auto', width: '100%' }}>
<div ref={videoRef} style={{ width: '100%', height: 'auto' }} />
</div>
);
};
Expand Down

0 comments on commit ae84752

Please sign in to comment.