Merge pull request #1175 from vector-im/SimonBrandner/fix/grid
This commit is contained in:
commit
aeafdac54f
1 changed files with 7 additions and 2 deletions
|
@ -50,7 +50,11 @@ import {
|
||||||
RoomHeaderInfo,
|
RoomHeaderInfo,
|
||||||
VersionMismatchWarning,
|
VersionMismatchWarning,
|
||||||
} from "../Header";
|
} from "../Header";
|
||||||
import { useVideoGridLayout, TileDescriptor } from "../video-grid/VideoGrid";
|
import {
|
||||||
|
useVideoGridLayout,
|
||||||
|
TileDescriptor,
|
||||||
|
VideoGrid,
|
||||||
|
} from "../video-grid/VideoGrid";
|
||||||
import {
|
import {
|
||||||
useShowInspector,
|
useShowInspector,
|
||||||
useShowConnectionStats,
|
useShowConnectionStats,
|
||||||
|
@ -245,7 +249,8 @@ export function InCallView({
|
||||||
[fullscreenItem, noControls, items]
|
[fullscreenItem, noControls, items]
|
||||||
);
|
);
|
||||||
|
|
||||||
const Grid = NewVideoGrid;
|
const Grid =
|
||||||
|
items.length > 12 && layout === "freedom" ? NewVideoGrid : VideoGrid;
|
||||||
|
|
||||||
const prefersReducedMotion = usePrefersReducedMotion();
|
const prefersReducedMotion = usePrefersReducedMotion();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue