From ed83672720415d812bc800a63f4af00de22fb8e0 Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Tue, 14 Apr 2026 17:43:05 +0200 Subject: [PATCH 1/4] Update src/room/InCallView.tsx Co-authored-by: Robin --- src/room/InCallView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index cf445170..2b13e08f 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -683,6 +683,7 @@ export const InCallView: FC = ({ >
{showControls && + // Settings button is also shown in the app bar if present headerStyle !== HeaderStyle.AppBar && layout.type !== "pip" && ( From a069d28f3adb5179171bc7e62b601b8a094d587e Mon Sep 17 00:00:00 2001 From: Timo K Date: Tue, 14 Apr 2026 17:05:56 +0200 Subject: [PATCH 2/4] review: make appBar styling use IconButton (fix margins) --- src/AppBar.tsx | 11 ++++------- src/button/Button.tsx | 26 ++++++++++++++++---------- src/room/InCallView.tsx | 2 +- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/AppBar.tsx b/src/AppBar.tsx index 72ee9285..95cdb32b 100644 --- a/src/AppBar.tsx +++ b/src/AppBar.tsx @@ -16,7 +16,7 @@ import { useMemo, useState, } from "react"; -import { Button, Heading, Tooltip } from "@vector-im/compound-web"; +import { Button, Heading, IconButton, Tooltip } from "@vector-im/compound-web"; import { CollapseIcon } from "@vector-im/compound-design-tokens/assets/web/icons"; import { useTranslation } from "react-i18next"; @@ -68,12 +68,9 @@ export const AppBar: FC = ({ children }) => { > -
{recentsButtonInFooter && recentsButton} - +
; /** The version & compatibility mode of MatrixRTC that we should use. */ matrixRTCMode$?: Behavior; + mediaDeviceOverride?: MediaDevices; } // Do not play any sounds if the participant count has exceeded this diff --git a/src/utils/test-viewmodel.ts b/src/utils/test-viewmodel.ts index 8ab3c887..6d77a802 100644 --- a/src/utils/test-viewmodel.ts +++ b/src/utils/test-viewmodel.ts @@ -34,7 +34,6 @@ import { MockRTCSession, testScope, } from "./test"; -import { type MediaDevices } from "../state/MediaDevices"; import { aliceRtcMember, localRtcMember } from "./test-fixtures"; import { type RaisedHandInfo, type ReactionInfo } from "../reactions"; import { constant } from "../state/Behavior"; @@ -133,7 +132,6 @@ export function getBasicCallViewModelEnvironment( members: RoomMember[], initialRtcMemberships: CallMembership[] = [localRtcMember, aliceRtcMember], callViewModelOptions: Partial = {}, - mediaDevicesOverride?: MediaDevices, ): { vm: CallViewModel; rtcMemberships$: BehaviorSubject; @@ -154,7 +152,7 @@ export function getBasicCallViewModelEnvironment( testScope(), rtcSession.asMockedSession(), matrixRoom, - mediaDevicesOverride ?? mockMediaDevices({}), + callViewModelOptions.mediaDeviceOverride ?? mockMediaDevices({}), mockMuteStates(), { encryptionSystem: { kind: E2eeType.PER_PARTICIPANT },