react-component / tooltip

React Tooltip
http://react-component.github.io/tooltip/
MIT License
928 stars 190 forks source link

Arrow alignment on `placement` other than `top` is broken #445

Closed xsjcTony closed 1 year ago

xsjcTony commented 1 year ago

@zombieJ Hey, really sorry for bothering but I'm comping up with another bug.

Simply arrow alignment on placement other than top seems all broken.

Here's a reproduction for top / left / right / and bottom, you can have a look, appreciate it.

https://stackblitz.com/edit/vitejs-vite-8228fq?file=src/App.tsx

image

zombieJ commented 1 year ago

Seems it can just be fixed with style: https://stackblitz.com/edit/vitejs-vite-drjjx5?file=src%2Fassets%2Fstyles%2Frc-tooltip.scss

xsjcTony commented 1 year ago

@zombieJ Yeah I agree with you, but I think the original style provided with the package is still broken: https://stackblitz.com/edit/vitejs-vite-8228fq?file=src/App.tsx But anyway, it's trivial.