Skip to content

Commit bbc59f4

Browse files
committed
fix: change position of arrow when border option
1 parent 8d2f001 commit bbc59f4

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
@@ -59,7 +59,7 @@ export const computeTooltipPosition = async ({
5959
right: '',
6060
bottom: '',
6161
...{ ...borderSide },
62-
[staticSide]: '-5px',
62+
[staticSide]: border ? '-5px' : '-4px',
6363
}
6464

6565
return { tooltipStyles: styles, tooltipArrowStyles: arrowStyle, place: placement }

0 commit comments

Comments
 (0)