-
Notifications
You must be signed in to change notification settings - Fork 27
fix: dialog are zooming in from top-left instead of center #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 |
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