fix: new project modal scrolls when it overflows(instead of clipping content)

This commit is contained in:
Hamzat Victor 2024-09-24 14:01:51 +01:00
parent af45df28d5
commit b7230f1bc4

View File

@ -71,7 +71,7 @@ const data: {
icon: "/project-icons/python.svg", icon: "/project-icons/python.svg",
description: "A JavaScript runtime built on the V8 JavaScript engine", description: "A JavaScript runtime built on the V8 JavaScript engine",
disabled: false, disabled: false,
} },
] ]
const formSchema = z.object({ const formSchema = z.object({
@ -124,7 +124,7 @@ export default function NewProjectModal({
if (!loading) setOpen(open) if (!loading) setOpen(open)
}} }}
> >
<DialogContent> <DialogContent className="max-h-[95vh] overflow-y-auto">
<DialogHeader> <DialogHeader>
<DialogTitle>Create A Sandbox</DialogTitle> <DialogTitle>Create A Sandbox</DialogTitle>
</DialogHeader> </DialogHeader>