Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Dec 16, 2024
1 parent fd9b122 commit bb1f68c
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,25 +146,14 @@ export const PresentationPanelHoverActions = ({
const anchorWidth = anchorRef.current.offsetWidth;
const hoverActionsWidth =
(rightHoverActionsRef.current?.offsetWidth ?? 0) +
<<<<<<< HEAD
(dragHandleRef.current?.offsetWidth ?? 0) +
parseInt(euiThemeVars.euiSize, 10) * 2;
const hoverActionsHeight = rightHoverActionsRef.current?.offsetHeight ?? 0;

// Left align hover actions when they would get cut off by the right edge of the window
if (anchorLeft - (hoverActionsWidth - anchorWidth) <= parseInt(euiThemeVars.euiSize, 10)) {
dragHandleRef.current?.style.removeProperty('right');
dragHandleRef.current?.style.setProperty('left', '0');
=======
(leftHoverActionsRef.current?.offsetWidth ?? 0) +
parseInt(euiTheme.size.m, 10) * 2;
const hoverActionsHeight = rightHoverActionsRef.current?.offsetHeight ?? 0;

// Left align hover actions when they would get cut off by the right edge of the window
if (anchorLeft - (hoverActionsWidth - anchorWidth) <= parseInt(euiTheme.size.m, 10)) {
hoverActionsRef.current.style.removeProperty('right');
hoverActionsRef.current.style.setProperty('left', '0');
>>>>>>> fd8eec4ebe6 (Replace euiThemeVars from embeddable/presentation_panel)
dragHandleRef.current?.style.removeProperty('right');
dragHandleRef.current?.style.setProperty('left', '0');
} else {
hoverActionsRef.current.style.removeProperty('left');
hoverActionsRef.current.style.setProperty('right', '0');
Expand Down

0 comments on commit bb1f68c

Please sign in to comment.