This commit is contained in:
2024-09-21 10:25:28 +03:00
parent 7205f8c9ad
commit c8fb4974a7
2 changed files with 62 additions and 36 deletions

View File

@@ -2202,59 +2202,61 @@ export const Group = ({
{mobileViewModeKeepOpen === "messaging" && renderDirects()}
{newChat && (
<>
<Box
sx={{
display: "flex",
alignItems: "center",
width: "100%",
marginTop: "14px",
justifyContent: "center",
height: "15px",
}}
>
<Box
{isMobile && (
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
width: "320px",
width: "100%",
marginTop: "14px",
justifyContent: "center",
height: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
width: "50px",
justifyContent: "space-between",
width: "320px",
}}
>
<ButtonBase
onClick={() => {
close()
<Box
sx={{
display: "flex",
alignItems: "center",
width: "50px",
}}
>
<ReturnIcon />
</ButtonBase>
</Box>
<Box
sx={{
display: "flex",
alignItems: "center",
width: "50px",
justifyContent: "flex-end",
}}
>
<ButtonBase
onClick={() => {
setSelectedDirect(null)
setMobileViewModeKeepOpen('')
onClick={() => {
close()
}}
>
<ReturnIcon />
</ButtonBase>
</Box>
<Box
sx={{
display: "flex",
alignItems: "center",
width: "50px",
justifyContent: "flex-end",
}}
>
<ExitIcon />
</ButtonBase>
<ButtonBase
onClick={() => {
setSelectedDirect(null)
setMobileViewModeKeepOpen('')
}}
>
<ExitIcon />
</ButtonBase>
</Box>
</Box>
</Box>
</Box>
)}
<Box
sx={{
position: "absolute",