style: adjust spacing in FormPrezzo and update DialogContent max width in EditPrezzoModal
This commit is contained in:
parent
b9934cb390
commit
237c068409
2 changed files with 3 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ export const FormPrezzo = ({
|
||||||
<Form {...form}>
|
<Form {...form}>
|
||||||
<form
|
<form
|
||||||
onSubmit={form.handleSubmit(onSubmit)}
|
onSubmit={form.handleSubmit(onSubmit)}
|
||||||
className="space-y-8 px-0.5"
|
className="space-y-4 px-0.5"
|
||||||
>
|
>
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
|
|
@ -240,7 +240,7 @@ export const FormPrezzo = ({
|
||||||
id="prezzo"
|
id="prezzo"
|
||||||
value={Number(field.value) / 100}
|
value={Number(field.value) / 100}
|
||||||
onChange={(v) => {
|
onChange={(v) => {
|
||||||
field.onChange(() => parseInt(v.target.value) * 100);
|
field.onChange(parseInt(v.target.value) * 100);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ const EditPrezzoModal = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={setOpen}>
|
<Dialog open={open} onOpenChange={setOpen}>
|
||||||
<DialogContent className="sm:max-w-[425px]">
|
<DialogContent className="sm:max-w-2xl">
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>Modifica Servizio</DialogTitle>
|
<DialogTitle>Modifica Servizio</DialogTitle>
|
||||||
<DialogDescription className="sr-only">
|
<DialogDescription className="sr-only">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue