feat(auto-form): apply full width to form class

The className of the form in the auto-form component has been updated to include "w-full". This change ensures that the form will occupy the full width of its parent container, enhancing layout and visibility.
This commit is contained in:
Mathis H (Avnyr) 2024-06-17 09:44:07 +02:00
parent 15eb7addd0
commit 0504692dfb
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -98,7 +98,7 @@ function AutoForm<SchemaType extends ZodObjectOrWrapped>({
onSubmit={(e) => { onSubmit={(e) => {
form.handleSubmit(onSubmit)(e); form.handleSubmit(onSubmit)(e);
}} }}
className={cn("space-y-5", className)} className={cn("space-y-5 w-full", className)}
> >
<AutoFormObject <AutoFormObject
schema={objectFormSchema} schema={objectFormSchema}