del: windowMode$ from public callViewModel

replace with edgeToEdge$
This commit is contained in:
Timo K
2026-05-20 15:00:28 +02:00
parent c9fa586db1
commit ec3b52f963
4 changed files with 2 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ vi.mock("@livekit/track-processors", () => ({
function buildMinimalCallViewModel(layout: Layout): CallViewModel {
return {
layout$: constant(layout),
windowMode$: constant("normal"),
edgeToEdge$: constant(false),
showHeader$: constant(false),
hangup: (): void => {},
gridMode$: constant("grid"),

View File

@@ -154,9 +154,7 @@ export function createCallFooterViewModel(
// candidat to move into the FooterViewModel
showFooter$: callModel.showFooter$,
hideControls$: constant(!showControls),
asOverlay$: scope.behavior(
callModel.windowMode$.pipe(map((mode) => mode === "flat")),
),
asOverlay$: callModel.edgeToEdge$,
buttonSize$: scope.behavior(
isPip$.pipe(map<boolean, "md" | "lg">((pip) => (pip ? "md" : "lg"))),
),