Skip to content

Commit

Permalink
fix(site): remove unnecessary right margin from getTooltipPosition func
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuallyunknown committed Jul 16, 2024
1 parent 4d1da03 commit 8949f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/site/src/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function getTooltipPosition(container: HTMLElement, item: HTMLElement, to
const tooltipSideWidth = (tooltipRect.width - itemRect.width) / 2;

if (spaceRight < tooltipSideWidth) {
left = `-${tooltipRect.width - (spaceRight + itemRect.width) + 16}px`;
left = `-${tooltipRect.width - (spaceRight + itemRect.width)}px`;
}
}

Expand Down

0 comments on commit 8949f19

Please sign in to comment.