From 52551580908872bb182896188ddecc7e8e9decf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 3 Jul 2023 10:03:24 +0200 Subject: [PATCH] Fix new grid layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/room/InCallView.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 80df493..e3c7e94 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -50,7 +50,11 @@ import { RoomHeaderInfo, VersionMismatchWarning, } from "../Header"; -import { useVideoGridLayout, TileDescriptor } from "../video-grid/VideoGrid"; +import { + useVideoGridLayout, + TileDescriptor, + VideoGrid, +} from "../video-grid/VideoGrid"; import { useShowInspector, useShowConnectionStats, @@ -245,7 +249,8 @@ export function InCallView({ [fullscreenItem, noControls, items] ); - const Grid = NewVideoGrid; + const Grid = + items.length > 12 && layout === "freedom" ? NewVideoGrid : VideoGrid; const prefersReducedMotion = usePrefersReducedMotion();