diff --git a/apis/nucleus/src/components/ActionsToolbar.jsx b/apis/nucleus/src/components/ActionsToolbar.jsx index 443ea5657..22fc90bb5 100644 --- a/apis/nucleus/src/components/ActionsToolbar.jsx +++ b/apis/nucleus/src/components/ActionsToolbar.jsx @@ -79,10 +79,6 @@ const ActionsGroup = React.forwardRef( ); const popoverStyle = { pointerEvents: 'none' }; -const popoverAnchorOrigin = { - vertical: 'top', - horizontal: 'right', -}; const popoverTransformOrigin = { vertical: 'bottom', horizontal: 'right', @@ -123,6 +119,11 @@ function ActionsToolbar({ const theme = useTheme(); const dividerStyle = useMemo(() => ({ margin: theme.spacing(0.5, 0) })); + const popoverAnchorOrigin = { + vertical: 15, + horizontal: (popover.anchorEl?.clientWidth ?? 0) - 7, + }; + const getEnabledButton = (last) => { const actionsElement = actionsRef.current || actionsRefMock; if (!actionsElement) return null;