Skip to content

Commit dc4d404

Browse files
fix: pad arrow position to avoid overflow
1 parent 8815eed commit dc4d404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/compute-positions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const computeTooltipPosition = async ({
2323
const middleware = [offset(Number(offsetValue)), flip(), shift({ padding: 5 })]
2424

2525
if (tooltipArrowReference) {
26-
middleware.push(arrow({ element: tooltipArrowReference as HTMLElement }))
26+
middleware.push(arrow({ element: tooltipArrowReference as HTMLElement, padding: 5 }))
2727
return computePosition(elementReference as HTMLElement, tooltipReference as HTMLElement, {
2828
placement: place,
2929
strategy,

0 commit comments

Comments
 (0)