Only show the expand button in spotlight layout (#2510)

It has no effect in any layout other than spotlight, and we've decided to hide it rather than spending effort to make it do something.
This commit is contained in:
Robin
2024-07-26 06:57:49 -04:00
committed by GitHub
parent d5faa5ea90
commit a3ce333352
2 changed files with 24 additions and 11 deletions

View File

@@ -285,11 +285,6 @@ export const InCallView: FC<InCallViewProps> = ({
}
}, [setGridMode]);
const toggleSpotlightExpanded = useCallback(
() => vm.toggleSpotlightExpanded(),
[vm],
);
const Tile = useMemo(
() =>
forwardRef<
@@ -300,6 +295,9 @@ export const InCallView: FC<InCallViewProps> = ({
ref,
) {
const spotlightExpanded = useObservableEagerState(vm.spotlightExpanded);
const [onToggleExpanded] = useObservableEagerState(
vm.toggleSpotlightExpanded,
);
const showSpeakingIndicatorsValue = useObservableEagerState(
vm.showSpeakingIndicators,
);
@@ -324,7 +322,7 @@ export const InCallView: FC<InCallViewProps> = ({
vms={model.vms}
maximised={model.maximised}
expanded={spotlightExpanded}
onToggleExpanded={toggleSpotlightExpanded}
onToggleExpanded={onToggleExpanded}
targetWidth={targetWidth}
targetHeight={targetHeight}
showIndicators={showSpotlightIndicatorsValue}
@@ -333,7 +331,7 @@ export const InCallView: FC<InCallViewProps> = ({
/>
);
}),
[vm, toggleSpotlightExpanded, openProfile],
[vm, openProfile],
);
const layouts = useMemo(() => {