shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
58.55k stars 3.19k forks source link

[bug]: Navigation Menu `div` doesn't morph along x-axis as cursor moves across `<NavigationMenuItem />` #3583

Open codesfromshad opened 2 weeks ago

codesfromshad commented 2 weeks ago

Describe the bug

When the cursor moves from one <NavigationMenuItem /> to another, the expected behavior is a smooth morphing of the div, the div snaps based on the size of the next <NavigationMenuItem />.

Affected component/components

Navigation Menu

How to reproduce

Here's a video of the expected behavior from Radix UI:

https://github.com/shadcn-ui/ui/assets/92628452/c580561a-c4a8-4c7e-a183-fe8018eb54ea

Here's the behavior from shadcn-ui:

https://github.com/shadcn-ui/ui/assets/92628452/780d99dc-15b0-4808-8428-2fb46c7b944a

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Chrome, Windows

Before submitting

flixlix commented 2 weeks ago

fixed in #3587

codesfromshad commented 2 weeks ago

Du du du du, Bug Fixstrapppen... 🎡🎢🎡

codesfromshad commented 2 weeks ago

Holy moly that was fast... Thank you! @flixlix