Skip to content
Snippets Groups Projects
Unverified Commit 9438a006 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Entity menu shouldn't be too far off (#22077)

parent 88a37d29
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ class EntityMenu extends Component {
className,
tooltip,
trigger,
targetOffsetY,
} = this.props;
const { open, menuItemContent } = this.state;
return (
......@@ -65,7 +66,7 @@ class EntityMenu extends Component {
hasArrow={false}
hasBackground={false}
horizontalAttachments={["left", "right"]}
targetOffsetY={20}
targetOffsetY={targetOffsetY || 0}
>
{/* Note: @kdoh 10/12/17
* React Motion has a flow type problem with children see
......
......@@ -107,6 +107,7 @@ function ProfileLink({ user, handleCloseNavbar, adminItems, handleLogout }) {
tooltip={t`Settings`}
items={generateOptionsForUser()}
triggerIcon="gear"
targetOffsetY={20}
triggerProps={{
color: color("text-medium"),
hover: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment