Adding mx margin on Dialog at sm breakpoint #2640
Replies: 1 comment 1 reply
-
I figured out if you add className="w-11/12 sm:max-w-md" to DialogContent it has the desired effect I was looking for. Closing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to add some simple margin to left and right of a dialog box when viewing on a mobile screen. No matter where I seem to add mx-5 it doesn't actually work. Any ideas on how to add some margin to a shadcn dialog when viewing on a phone like this?
Beta Was this translation helpful? Give feedback.
All reactions