This commit is contained in:
ditiqi 2025-02-23 21:42:55 +08:00
parent 60c317757e
commit 83bb5bb252
1 changed files with 2 additions and 2 deletions

View File

@ -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>
</> </>
); );
} }