Ensure landscape layout is always edge-to-edge on mobile

The spotlight landscape layout was edge-to-edge previously, and should remain that way.
This commit is contained in:
Robin
2026-05-20 16:03:48 +02:00
parent 8324ce2ce0
commit 8d07d552d7
2 changed files with 7 additions and 5 deletions

View File

@@ -1070,10 +1070,12 @@ export function createCallViewModel$(
}),
);
const spotlightLandscapeLayoutMedia$: Observable<SpotlightLandscapeLayoutMedia> =
const spotlightLandscapeLayoutMedia$ = (
edgeToEdge: boolean,
): Observable<SpotlightLandscapeLayoutMedia> =>
combineLatest([grid$, spotlight$], (grid, spotlight) => ({
type: "spotlight-landscape",
edgeToEdge: false,
edgeToEdge,
spotlight,
grid,
}));
@@ -1208,7 +1210,7 @@ export function createCallViewModel$(
switchMap((expanded) =>
expanded
? spotlightExpandedLayoutMedia$(false)
: spotlightLandscapeLayoutMedia$,
: spotlightLandscapeLayoutMedia$(false),
),
);
}
@@ -1234,7 +1236,7 @@ export function createCallViewModel$(
case "grid":
// Yes, grid mode actually gets you a "spotlight" layout in
// this window mode.
return spotlightLandscapeLayoutMedia$;
return spotlightLandscapeLayoutMedia$(true);
case "spotlight":
return spotlightExpandedLayoutMedia$(true);
}

View File

@@ -26,7 +26,7 @@ export interface GridLayoutMedia {
export interface SpotlightLandscapeLayoutMedia {
type: "spotlight-landscape";
edgeToEdge: false;
edgeToEdge: boolean;
spotlight: MediaViewModel[];
grid: UserMediaViewModel[];
}