[WEB-619] fix: workspace all issue quick action (#3853)

* chore: custom menu dropdown menu items classname prop added

* fix: issue layout quick action z index fix
This commit is contained in:
Anmol Singh Bhatia 2024-03-01 17:23:26 +05:30 committed by GitHub
parent e4bccea824
commit 4b706437d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 1 deletions

View File

@ -27,6 +27,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
noBorder = false, noBorder = false,
noChevron = false, noChevron = false,
optionsClassName = "", optionsClassName = "",
menuItemsClassName = "",
verticalEllipsis = false, verticalEllipsis = false,
portalElement, portalElement,
menuButtonOnClick, menuButtonOnClick,
@ -70,7 +71,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
useOutsideClickDetector(dropdownRef, closeDropdown); useOutsideClickDetector(dropdownRef, closeDropdown);
let menuItems = ( let menuItems = (
<Menu.Items className="fixed z-10" static> <Menu.Items className={cn("fixed z-10", menuItemsClassName)} static>
<div <div
className={cn( className={cn(
"my-1 overflow-y-scroll rounded-md border-[0.5px] border-custom-border-300 bg-custom-background-100 px-2 py-2.5 text-xs shadow-custom-shadow-rg focus:outline-none min-w-[12rem] whitespace-nowrap", "my-1 overflow-y-scroll rounded-md border-[0.5px] border-custom-border-300 bg-custom-background-100 px-2 py-2.5 text-xs shadow-custom-shadow-rg focus:outline-none min-w-[12rem] whitespace-nowrap",

View File

@ -24,6 +24,7 @@ export interface ICustomMenuDropdownProps extends IDropdownProps {
noBorder?: boolean; noBorder?: boolean;
verticalEllipsis?: boolean; verticalEllipsis?: boolean;
menuButtonOnClick?: (...args: any) => void; menuButtonOnClick?: (...args: any) => void;
menuItemsClassName?: string;
onMenuClose?: () => void; onMenuClose?: () => void;
closeOnSelect?: boolean; closeOnSelect?: boolean;
portalElement?: Element | null; portalElement?: Element | null;

View File

@ -96,6 +96,7 @@ export const AllIssueQuickActions: React.FC<IQuickActionProps> = observer((props
storeType={EIssuesStoreType.PROJECT} storeType={EIssuesStoreType.PROJECT}
/> />
<CustomMenu <CustomMenu
menuItemsClassName="z-[14]"
placement="bottom-start" placement="bottom-start"
customButton={customActionButton} customButton={customActionButton}
portalElement={portalElement} portalElement={portalElement}

View File

@ -56,6 +56,7 @@ export const ArchivedIssueQuickActions: React.FC<IQuickActionProps> = (props) =>
onSubmit={handleDelete} onSubmit={handleDelete}
/> />
<CustomMenu <CustomMenu
menuItemsClassName="z-[14]"
placement="bottom-start" placement="bottom-start"
customButton={customActionButton} customButton={customActionButton}
portalElement={portalElement} portalElement={portalElement}

View File

@ -106,6 +106,7 @@ export const CycleIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
storeType={EIssuesStoreType.CYCLE} storeType={EIssuesStoreType.CYCLE}
/> />
<CustomMenu <CustomMenu
menuItemsClassName="z-[14]"
placement="bottom-start" placement="bottom-start"
customButton={customActionButton} customButton={customActionButton}
portalElement={portalElement} portalElement={portalElement}

View File

@ -106,6 +106,7 @@ export const ModuleIssueQuickActions: React.FC<IQuickActionProps> = observer((pr
storeType={EIssuesStoreType.MODULE} storeType={EIssuesStoreType.MODULE}
/> />
<CustomMenu <CustomMenu
menuItemsClassName="z-[14]"
placement="bottom-start" placement="bottom-start"
customButton={customActionButton} customButton={customActionButton}
portalElement={portalElement} portalElement={portalElement}

View File

@ -108,6 +108,7 @@ export const ProjectIssueQuickActions: React.FC<IQuickActionProps> = observer((p
isDraft={isDraftIssue} isDraft={isDraftIssue}
/> />
<CustomMenu <CustomMenu
menuItemsClassName="z-[14]"
placement="bottom-start" placement="bottom-start"
customButton={customActionButton} customButton={customActionButton}
portalElement={portalElement} portalElement={portalElement}