Merge pull request #1175 from vector-im/SimonBrandner/fix/grid

This commit is contained in:
Šimon Brandner 2023-07-03 10:44:06 +02:00 committed by GitHub
commit aeafdac54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();