Merge branch 'feature/lightning-menu' of gitlab.com:theappsmith/internal-tools-client into fix/icons-placement-issues

This commit is contained in:
vicky_primathon.in 2020-06-04 16:03:05 +05:30
commit cf0fa0fd22
3 changed files with 23 additions and 0 deletions

View File

@ -64,6 +64,11 @@ export const getApiOptions = (
openDirection: Directions.RIGHT,
openOnHover: false,
skin: skin,
modifiers: {
offset: {
offset: "0, 16px",
},
},
});
export const getQueryOptions = (
@ -108,6 +113,11 @@ export const getQueryOptions = (
openDirection: Directions.RIGHT,
openOnHover: false,
skin: skin,
modifiers: {
offset: {
offset: "0, 16px",
},
},
});
export const getWidgetOptions = (
@ -133,6 +143,11 @@ export const getWidgetOptions = (
openDirection: Directions.RIGHT,
openOnHover: false,
skin: skin,
modifiers: {
offset: {
offset: "0, 16px",
},
},
});
export const getLightningMenuOptions = (

View File

@ -55,6 +55,11 @@ const lightningMenuOptions = (
onCloseLightningMenu();
}
},
modifiers: {
offset: {
offset: "0, 32px",
},
},
};
};

View File

@ -7,6 +7,7 @@ import {
Classes,
PopoverInteractionKind,
Icon,
IPopoverSharedProps,
} from "@blueprintjs/core";
import { IconNames } from "@blueprintjs/icons";
import { MenuIcons } from "icons/MenuIcons";
@ -47,6 +48,7 @@ export type CustomizedDropdownProps = {
openOnHover?: boolean;
usePortal?: boolean;
skin?: Skin;
modifiers?: IPopoverSharedProps["modifiers"];
};
const getIcon = (icon?: string, intent?: Intent) => {
@ -147,6 +149,7 @@ export const CustomizedDropdown = (
props.onCloseDropDown();
}
}}
modifiers={props.modifiers}
>
<DropdownTrigger skin={skin}>{trigger}</DropdownTrigger>
<DropdownContent skin={skin}>{content}</DropdownContent>