fix: constrain ScrollArea maxHeight to force dialog scrolling
All checks were successful
Staging Build / build (push) Successful in 2m34s
All checks were successful
Staging Build / build (push) Successful in 2m34s
This commit is contained in:
@@ -135,8 +135,8 @@ export function CreateProductDialog({ children, categories, product }: { childre
|
||||
</DialogHeader>
|
||||
|
||||
<Form {...form}>
|
||||
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6 flex-1 min-h-0 overflow-hidden flex flex-col">
|
||||
<ScrollArea className="flex-1 min-h-0 pr-4">
|
||||
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6 flex flex-col">
|
||||
<ScrollArea className="pr-4" style={{ maxHeight: 'calc(90vh - 220px)' }}>
|
||||
<div className="space-y-6 py-4">
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<FormField
|
||||
|
||||
Reference in New Issue
Block a user