Skip to content

Commit

Permalink
fix tooltip positioning so it never goes out of the screen (#6690)
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeholmebonnen committed Apr 23, 2024
1 parent 2cbb21a commit dd2fc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/tooltips/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getOffsetTooltipPosition = ({

const tooltipPosition = {
x: mousePositionX + xOffset,
y: mousePositionY - yOffset,
y: Math.max(mousePositionY - yOffset, 0),
};

return tooltipPosition;
Expand Down

0 comments on commit dd2fc1a

Please sign in to comment.