Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(voice): fix focused stream layout and PiP controls (#3673)

Hampus2c1b5d601907
diff --git a/fluxer_app/src/features/voice/components/VoiceCallView.module.css b/fluxer_app/src/features/voice/components/VoiceCallView.module.css
index 6c97fe003..cf8d15069 100644
--- a/fluxer_app/src/features/voice/components/VoiceCallView.module.css
+++ b/fluxer_app/src/features/voice/components/VoiceCallView.module.css
@@ -1169,6 +1169,10 @@
z-index: 1;
}
+.rootFocused:has(.focusLayoutContentFullscreenMembersVisible) .mainContent {
+ grid-row: 2 / -1;
+}
+
.rootFocused .voiceHeader {
grid-area: header;
grid-column: 1 / -1;
diff --git a/fluxer_app/src/features/voice/components/VoiceParticipantTile.tsx b/fluxer_app/src/features/voice/components/VoiceParticipantTile.tsx
index f0d00a74e..11c2b877e 100644
--- a/fluxer_app/src/features/voice/components/VoiceParticipantTile.tsx
+++ b/fluxer_app/src/features/voice/components/VoiceParticipantTile.tsx
@@ -666,13 +666,15 @@ const VoiceParticipantTileInner = observer(function VoiceParticipantTileInner({
presentation,
});
const showTileSpectatorPill = !isFocusPresentationTile && isScreenShare && viewerUsers.length > 0;
- const showTileControlPill = shouldShowTileControlPill({
- isFocusedPlaceholderTile,
- showStreamAudioControls,
- showSpectatorPill: showTileSpectatorPill,
- showGroupHiddenPill: isGridTile && groupHiddenCount > 0,
- showDeviceCollapseControl,
- });
+ const showTileControlPill =
+ showParticipantMetadata &&
+ shouldShowTileControlPill({
+ isFocusedPlaceholderTile,
+ showStreamAudioControls,
+ showSpectatorPill: showTileSpectatorPill,
+ showGroupHiddenPill: isGridTile && groupHiddenCount > 0,
+ showDeviceCollapseControl,
+ });
const viewerStreamCount = graphViewerStreamKeys.length;
const addStreamTooltipText = plural(
{count: viewerStreamCount},
diff --git a/fluxer_app/src/features/voice/state/VoiceCallLayout.ts b/fluxer_app/src/features/voice/state/VoiceCallLayout.ts
index 371a4f571..87297c08c 100644
--- a/fluxer_app/src/features/voice/state/VoiceCallLayout.ts
+++ b/fluxer_app/src/features/voice/state/VoiceCallLayout.ts
@@ -31,6 +31,10 @@ class VoiceCallLayout {
}
setLayoutMode(mode: LayoutMode): void {
+ if (mode === 'grid') {
+ this.setPinnedParticipant(null);
+ return;
+ }
this.layoutMode = mode;
}