mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
use spotlight view for 1:1s when showControls=false and hide more buttons
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user