use spotlight view for 1:1s when showControls=false and hide more buttons

This commit is contained in:
Matthew Hodgson
2026-05-11 22:37:13 +00:00
parent 8d7ceeec93
commit 89b76eff23
4 changed files with 113 additions and 66 deletions

View File

@@ -384,6 +384,7 @@ interface Props {
focusable: boolean;
className?: string;
style?: ComponentProps<typeof animated.div>["style"];
hideFullscreen?: boolean;
}
export const SpotlightTile: FC<Props> = ({
@@ -397,6 +398,7 @@ export const SpotlightTile: FC<Props> = ({
focusable = true,
className,
style,
hideFullscreen = false,
}) => {
const { t } = useTranslation();
const [ourRef, root$] = useObservableRef<HTMLDivElement | null>(null);
@@ -520,7 +522,7 @@ export const SpotlightTile: FC<Props> = ({
{visibleMedia?.type === "screen share" && !visibleMedia.local && (
<ScreenShareVolumeButton vm={visibleMedia} />
)}
{platform === "desktop" && (
{platform === "desktop" && !hideFullscreen && (
<button
className={classNames(styles.expand)}
aria-label={"maximise"}