Merge pull request #131 from ArnasDon/fix/flows-dialog-actually-wider

fix(flows): create-flow dialog was still clamped to 384px — override sm: variant
This commit is contained in:
Arnas Donauskas 2026-05-22 16:27:10 +03:00 committed by GitHub
commit 39b03f1299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,7 +245,11 @@ export default function FlowsPage() {
)}
<Dialog open={createOpen} onOpenChange={setCreateOpen}>
<DialogContent className="max-w-3xl bg-slate-900 text-slate-100">
{/* `sm:max-w-4xl` not `max-w-4xl` — shadcn's DialogContent has
`sm:max-w-sm` baked into its default classes. Without the
sm: prefix our override applies at base only and the
sm-scoped 384px wins at every real desktop breakpoint. */}
<DialogContent className="sm:max-w-4xl bg-slate-900 text-slate-100">
<DialogHeader>
<DialogTitle>Create a new flow</DialogTitle>
<DialogDescription className="text-slate-400">