From e32f98e1b0db486d5e4fb545a098991d4d4ed37b Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 17 Jun 2025 18:31:02 +0300 Subject: [PATCH] fix defaults --- src/components/VideoPlayer/VideoControlsBar.tsx | 2 +- src/hooks/useGlobalPipPlayer.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/VideoPlayer/VideoControlsBar.tsx b/src/components/VideoPlayer/VideoControlsBar.tsx index ef5a3c2..8a3810c 100644 --- a/src/components/VideoPlayer/VideoControlsBar.tsx +++ b/src/components/VideoPlayer/VideoControlsBar.tsx @@ -113,7 +113,7 @@ export const VideoControlsBar = ({subtitleBtnRef, showControls, playbackRate, in - + {/* */} diff --git a/src/hooks/useGlobalPipPlayer.tsx b/src/hooks/useGlobalPipPlayer.tsx index 3270df3..20a3bb9 100644 --- a/src/hooks/useGlobalPipPlayer.tsx +++ b/src/hooks/useGlobalPipPlayer.tsx @@ -134,10 +134,10 @@ const margin = 50; useEffect(() => { rndRef.current.updatePosition({ - x: window.innerWidth - 400 - margin, - y: window.innerHeight - 300 - margin, - width: 400, - height: 300 + x: window.innerWidth - (width || 400) - margin, + y: window.innerHeight - (height || 300) - margin, + width: width || 400, + height: height || 300 }); }, [videoSrc]);