Skip to content
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

feat(alert-dialog): change position to bottom #3588

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

byeze
Copy link

@byeze byeze commented Apr 24, 2024

New position for the alert-dialog. For mobile users, it's better to dislpay alerts at the bottom of the navigator, so the thumb can easily press the desired button for the action. At the moment, the alert dialog renders a centered dialog, instead of at the bottom.

Preview of the change

image

Copy link

vercel bot commented Apr 24, 2024

Someone is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@benorloff
Copy link

@byeze I believe https://ui.shadcn.com/docs/components/drawer#examples already achieves this functionality by rendering either a Drawer component or a Dialog component based on the viewport width.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants