Phone Call: Fix header overlapping with native buttons in Electron (follow-up) (#3750)
This commit is contained in:
parent
0dc5857247
commit
9a07fd1b73
@ -166,6 +166,10 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.375rem 0.875rem;
|
||||
|
||||
:global(body.is-electron) .root:not(.appFullscreen) & {
|
||||
padding-left: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.videosHeaderLastButton {
|
||||
|
||||
@ -26,6 +26,7 @@ import useAppLayout from '../../../hooks/useAppLayout';
|
||||
import useGroupCallVideoLayout from './hooks/useGroupCallVideoLayout';
|
||||
import { useIntersectionObserver, useIsIntersecting } from '../../../hooks/useIntersectionObserver';
|
||||
import useLastCallback from '../../../hooks/useLastCallback';
|
||||
import { useFullscreenStatus } from '../../../hooks/useFullscreen';
|
||||
|
||||
import Button from '../../ui/Button';
|
||||
import Modal from '../../ui/Modal';
|
||||
@ -105,6 +106,7 @@ const GroupCall: FC<OwnProps & StateProps> = ({
|
||||
const [isFullscreen, openFullscreen, closeFullscreen] = useFlag();
|
||||
const [isSidebarOpen, openSidebar, closeSidebar] = useFlag(true);
|
||||
const isLandscapeLayout = Boolean(isFullscreen && isLandscape);
|
||||
const isAppFullscreen = useFullscreenStatus();
|
||||
|
||||
const firstPresentation = useMemo(() => {
|
||||
return Object.values(participants).find(({ presentation }) => presentation);
|
||||
@ -253,6 +255,7 @@ const GroupCall: FC<OwnProps & StateProps> = ({
|
||||
className={buildClassName(
|
||||
styles.root,
|
||||
(isFullscreen || isMobile) && styles.fullscreen,
|
||||
isAppFullscreen && styles.appFullscreen,
|
||||
isLandscapeLayout && styles.landscape,
|
||||
!hasVideoParticipants && styles.noVideoParticipants,
|
||||
!isLandscapeLayout && styles.portrait,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user