Client: fixed closing the context menu in the list of members
This commit is contained in:
parent
ab0ea0393f
commit
73d1acebbb
@ -5,7 +5,7 @@ import Avatar from "@docspace/components/avatar";
|
|||||||
import ComboBox from "@docspace/components/combobox";
|
import ComboBox from "@docspace/components/combobox";
|
||||||
import DefaultUserPhotoUrl from "PUBLIC_DIR/images/default_user_photo_size_82-82.png";
|
import DefaultUserPhotoUrl from "PUBLIC_DIR/images/default_user_photo_size_82-82.png";
|
||||||
import toastr from "@docspace/components/toast/toastr";
|
import toastr from "@docspace/components/toast/toastr";
|
||||||
import { isMobileOnly } from "react-device-detect";
|
import { isMobileOnly, isTablet } from "react-device-detect";
|
||||||
import { decode } from "he";
|
import { decode } from "he";
|
||||||
import { filterUserRoleOptions } from "SRC_DIR/helpers/utils";
|
import { filterUserRoleOptions } from "SRC_DIR/helpers/utils";
|
||||||
import { getUserRole } from "@docspace/common/utils";
|
import { getUserRole } from "@docspace/common/utils";
|
||||||
@ -260,7 +260,7 @@ const User = ({
|
|||||||
options={userRoleOptions}
|
options={userRoleOptions}
|
||||||
onSelect={onOptionClick}
|
onSelect={onOptionClick}
|
||||||
scaled={false}
|
scaled={false}
|
||||||
withBackdrop={isMobileOnly}
|
withBackdrop={isMobileOnly || isTablet}
|
||||||
size="content"
|
size="content"
|
||||||
modernView
|
modernView
|
||||||
title={t("Common:Role")}
|
title={t("Common:Role")}
|
||||||
|
@ -87,7 +87,6 @@ const StyledLinkRow = styled.div`
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
|
||||||
background: ${(props) => props.theme.backgroundColor};
|
background: ${(props) => props.theme.backgroundColor};
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user