Use more consistent names for layout types

This commit is contained in:
Robin
2024-07-18 11:24:18 -04:00
parent 0664f978e3
commit 4955535374
2 changed files with 11 additions and 11 deletions

View File

@@ -344,9 +344,9 @@ export const InCallView: FC<InCallViewProps> = ({
};
return {
grid: makeGridLayout(inputs),
"spotlight landscape": makeSpotlightLandscapeLayout(inputs),
"spotlight portrait": makeSpotlightPortraitLayout(inputs),
"spotlight expanded": makeSpotlightExpandedLayout(inputs),
"spotlight-landscape": makeSpotlightLandscapeLayout(inputs),
"spotlight-portrait": makeSpotlightPortraitLayout(inputs),
"spotlight-expanded": makeSpotlightExpandedLayout(inputs),
"one-on-one": makeOneOnOneLayout(inputs),
};
}, [gridBoundsObservable, spotlightAlignment, pipAlignment]);
@@ -392,7 +392,7 @@ export const InCallView: FC<InCallViewProps> = ({
);
// The grid tiles go *under* the spotlight in the portrait layout, but
// *over* the spotlight in the expanded layout
return layout.type === "spotlight expanded" ? (
return layout.type === "spotlight-expanded" ? (
<>
{fixedGrid}
{scrollingGrid}