Only maximise a participant when the window is narrow, too

This commit is contained in:
Robin Townsend 2022-09-16 10:23:23 -04:00
parent 4a08ae75b3
commit 89fa9dfd64

View file

@ -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