Forced merge: merge ai-dev into master

This commit is contained in:
Flatlogic Bot 2025-08-20 16:39:15 +00:00
commit 87b08b420c
3 changed files with 48 additions and 57 deletions

File diff suppressed because one or more lines are too long

View File

@ -64,14 +64,6 @@ const FormImagePicker = ({
const showFilename = !isRoundIcon && file;
return (
<div>
{file && (
<img
src={file.url || URL.createObjectURL(file)}
alt="Preview"
className="mb-4 max-h-48 object-contain"
/>
)}
<div className='flex items-stretch justify-start relative'>
<label className='inline-flex'>
<BaseButton
@ -105,8 +97,6 @@ const FormImagePicker = ({
</div>
)}
</div>
</div>
);
};

View File

@ -91,21 +91,6 @@ const BottlesNew = () => {
onSubmit={(values) => handleSubmit(values)}
>
<Form>
<FormField label='Picture'>
<Field
label='Picture'
color='info'
icon={mdiUpload}
path='bottles/picture'
name='picture'
id='picture'
accept='image/*'
capture
schema={{ size: undefined, formats: undefined }}
component={FormImagePicker}
></Field>
</FormField>
<FormField label='Name'>
<Field name='name' placeholder='Name' />
</FormField>
@ -184,6 +169,23 @@ const BottlesNew = () => {
<Field name='barcode' placeholder='Barcode' />
</FormField>
<FormField>
<Field
label='Picture'
color='info'
icon={mdiUpload}
path={'bottles/picture'}
name='picture'
id='picture'
accept='image/*'
capture
schema={{
size: undefined,
formats: undefined,
}}
component={FormImagePicker}
></Field>
</FormField>
<FormField label='Age'>
<Field type='number' name='age' placeholder='Age' />