From b18a96c163d0fa1be4243441fd34f644201c2f1e Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Tue, 21 Feb 2023 16:45:59 +0100 Subject: [PATCH] change(ui): fix player resize --- .../app/components/Session/Player/ReplayPlayer/PlayerInst.tsx | 2 +- frontend/app/components/Session/WebPlayer.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/app/components/Session/Player/ReplayPlayer/PlayerInst.tsx b/frontend/app/components/Session/Player/ReplayPlayer/PlayerInst.tsx index 0e41640f6..6a300cce7 100644 --- a/frontend/app/components/Session/Player/ReplayPlayer/PlayerInst.tsx +++ b/frontend/app/components/Session/Player/ReplayPlayer/PlayerInst.tsx @@ -75,7 +75,7 @@ function Player(props: IProps) { React.useEffect(() => { playerContext.player.scale(); - }, [props.bottomBlock, props.fullscreen, playerContext.player]); + }, [props.bottomBlock, props.fullscreen, playerContext.player, activeTab, fullView]); if (!playerContext.player) return null; diff --git a/frontend/app/components/Session/WebPlayer.tsx b/frontend/app/components/Session/WebPlayer.tsx index 4c4f58668..383b70c63 100644 --- a/frontend/app/components/Session/WebPlayer.tsx +++ b/frontend/app/components/Session/WebPlayer.tsx @@ -26,8 +26,6 @@ function WebPlayer(props: any) { closeBottomBlock, fullscreen, fetchList, - insights, - jumpTimestamp, } = props; const { notesStore } = useStore(); const [activeTab, setActiveTab] = useState('');