add
This commit is contained in:
parent
60c317757e
commit
83bb5bb252
|
@ -9,7 +9,7 @@ export default function FullScreen() {
|
||||||
const { videoRef } = useContext(VideoPlayerContext);
|
const { videoRef } = useContext(VideoPlayerContext);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<button
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (document.fullscreenElement) {
|
if (document.fullscreenElement) {
|
||||||
document.exitFullscreen();
|
document.exitFullscreen();
|
||||||
|
@ -23,7 +23,7 @@ export default function FullScreen() {
|
||||||
) : (
|
) : (
|
||||||
<ArrowsPointingOutIcon className="w-10 h-10" />
|
<ArrowsPointingOutIcon className="w-10 h-10" />
|
||||||
)}
|
)}
|
||||||
</button>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue