Fix unexpected visibility in non-room areas

This commit is contained in:
Gigiaj 2025-05-09 14:17:25 -05:00
parent 00ac8f654a
commit ae9cc7a548

View file

@ -78,7 +78,7 @@ export function CallView({ room, eventId }: { room: Room; eventId?: string }) {
iframeElement.style.height = `${hostRect.height}px`; iframeElement.style.height = `${hostRect.height}px`;
iframeElement.style.border = 'none'; iframeElement.style.border = 'none';
iframeElement.style.zIndex = '1000'; iframeElement.style.zIndex = '1000';
iframeElement.style.display = 'block'; iframeElement.style.display = room.isCallRoom() ? 'block' : 'none';
iframeElement.style.visibility = 'visible'; iframeElement.style.visibility = 'visible';
iframeElement.style.pointerEvents = 'auto'; iframeElement.style.pointerEvents = 'auto';
} }
@ -139,6 +139,7 @@ export function CallView({ room, eventId }: { room: Room; eventId?: string }) {
height: '100%', height: '100%',
position: 'relative', position: 'relative',
pointerEvents: 'none', pointerEvents: 'none',
display: isCallViewVisible ? 'flex' : 'none',
}} }}
/> />
</Box> </Box>