Compare commits
2 commits
1c35bcb9d1
...
a815442990
| Author | SHA1 | Date | |
|---|---|---|---|
| a815442990 | |||
| c1194dadbb |
2 changed files with 5 additions and 1 deletions
|
|
@ -30,7 +30,9 @@
|
|||
<User class="h-10 w-10 text-muted-foreground" />
|
||||
</div>
|
||||
|
||||
<!-- Upload component -->
|
||||
<!-- Upload component. Avatars are small; tighten the
|
||||
default compress knobs so a 4K phone photo lands as
|
||||
a ~200 KB 512px WebP. -->
|
||||
<ImageUpload
|
||||
v-model="uploadedPicture"
|
||||
:multiple="false"
|
||||
|
|
@ -38,6 +40,7 @@
|
|||
:max-size-mb="5"
|
||||
:disabled="isUpdating"
|
||||
:allow-camera="true"
|
||||
:compress="{ maxWidthOrHeight: 512, maxSizeMB: 0.2 }"
|
||||
placeholder="Upload picture"
|
||||
accept="image/*"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@
|
|||
:show-primary-button="true"
|
||||
:disabled="isCreating"
|
||||
:allow-camera="true"
|
||||
:compress="true"
|
||||
placeholder="Add product photos"
|
||||
/>
|
||||
<FormMessage />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue