Next.js Discord

Discord Forum

Shadcn DialogContent

Unanswered
posted this in #help-forum
Open in Discord
OP
So i have Dialog component where inside it shows a certain table, how to make the dialog's width flexible following the content?

actually, on DialogContent i can just do min-w-5xl and its solved, but then the width wont be responsive

1 Reply

@ So i have Dialog component where inside it shows a certain table, how to make the dialog's width flexible following the content? actually, on DialogContent i can just do `min-w-5xl` and its solved, but then the width wont be responsive
The shadcn dialog has a default max-w of idk. You need to update the max-w to something else. Something bigger. Do for example „max-w-7xl!“ and then add „w-full“ to it as well and it will be waaay bigger