fix: dialog are zooming in from top-left instead of center#6
fix: dialog are zooming in from top-left instead of center#6brandon-julio-t wants to merge 4 commits intoshadcn:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Nice catch |
|
Thanks. Looks like we do lose some subtle animations by removing the classes but tailwindcss-animate needs some work for v4. I'm looking into this. |
|
Thank you for this |
|
@shadcn I checked the tailwindcss-animate repository and it looks like there hasn't been any activity since 2 years, so it's not a good idea to wait for an update to this package. |
|
another solution (my 2 cents) that I’m thinking is to just change from But all in all, I still don’t know why it works in tailwindcss 3, but not in tailwindcss 4, maybe something to do with the update from using btw me personally cannot see the “subtle” animation, so I don’t know how many pixel will fit into the “subtle” animation. |
|
@shadcn have you seen the https://github.com/Wombosvideo/tailwindcss-animate-v4 or https://github.com/nobie-org/tailwindcss-animate . The first one seems best suited for v4 |
|
Fixed by:
|
I think this is the best fix, we’ll change:
and it’ll animate properly updated in 444ccf4 1.mp4 |
i like it, |
|
thank you! you save my life |
|
just letting you guys know that shadcn has published the v4 over here https://github.com/shadcn-ui/ui/blob/main/apps/v4/registry/new-york-v4/ui/dialog.tsx |
|
resolved in latest shadcn/ui |
Description
Fixed Dialog and AlertDialog that are zooming in from top-left instead of center
Fixes #5
Screenshots/Videos
fixed.mp4
fixed.alert.dialog.mp4