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);
return (
<>
<button
<div
onClick={() => {
if (document.fullscreenElement) {
document.exitFullscreen();
@ -23,7 +23,7 @@ export default function FullScreen() {
) : (
<ArrowsPointingOutIcon className="w-10 h-10" />
)}
</button>
</div>
</>
);
}