fix direct group bug when toggle to apps

This commit is contained in:
PhilReact 2024-11-12 01:30:11 +02:00
parent e02ccd0edf
commit 8e70e29b13

View File

@ -2285,13 +2285,17 @@ export const Group = ({
<Box <Box
sx={{ sx={{
position: "absolute", position: "absolute",
left: "0px",
right: "0px", right: !(desktopViewMode === 'chat') ? "unset" : "0px",
bottom: "0px", bottom: !(desktopViewMode === 'chat') ? "unset" : "0px",
top: "0px", top: !(desktopViewMode === 'chat') ? "unset" : "0px",
background: "#27282c", background: "#27282c",
zIndex: 5, zIndex: 5,
height: isMobile && `calc(${rootHeight} - 45px)`, height: isMobile && `calc(${rootHeight} - 45px)`,
opacity: !(desktopViewMode === 'chat') ? 0 : 1,
left: !(desktopViewMode === 'chat') ? '-100000px' : '0px',
}} }}
> >
<ChatDirect <ChatDirect
@ -2632,13 +2636,15 @@ export const Group = ({
<Box <Box
sx={{ sx={{
position: "absolute", position: "absolute",
left: "0px", right: !(desktopViewMode === 'chat') ? "unset" : "0px",
right: "0px", bottom: !(desktopViewMode === 'chat') ? "unset" : "0px",
bottom: "0px", top: !(desktopViewMode === 'chat') ? "unset" : "0px",
top: "0px",
background: "#27282c", background: "#27282c",
zIndex: 5, zIndex: 5,
height: isMobile && `calc(${rootHeight} - 45px)`, height: isMobile && `calc(${rootHeight} - 45px)`,
opacity: !(desktopViewMode === 'chat') ? 0 : 1,
left: !(desktopViewMode === 'chat') ? '-100000px' : '0px',
}} }}
> >
<Box <Box