From 89fa9dfd6465925689796c3a3a22b7437ae4a5e7 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Fri, 16 Sep 2022 10:23:23 -0400 Subject: [PATCH] Only maximise a participant when the window is narrow, too --- src/room/InCallView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 2460825..cc40c1b 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -215,7 +215,7 @@ export function InCallView({ // window is too small to show everyone const maximisedParticipant = useMemo( () => - fullscreenParticipant ?? bounds.height <= 500 + fullscreenParticipant ?? (bounds.height <= 500 && bounds.width <= 500) ? items.find((item) => item.focused) ?? items.find((item) => item.callFeed) ?? null