Skip to content

Commit

Permalink
feat: allow webp in file packets, closes #1361
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed May 13, 2024
1 parent c8e15d6 commit 5addf88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/modals/AvatarChangeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
v-model="selectedFile"
:placeholder="t('settings.avatar.inputPlaceholder')"
:rules="[required(), maxFileSize()(useBackendData.validations.project.maxFileSize)]"
accept="image/png,image/jpeg"
accept="image/png,image/jpeg,image/webp"
/>
</div>
<cropper
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/[user]/[project]/settings/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ useHead(useSeo(i18n.t("project.settings.title") + " | " + props.project.name, pr
<p>{{ i18n.t("project.settings.iconSub") }}</p>
</div>
<div class="col-span-2">
<InputFile v-model="projectIcon" accept="image/png, image/jpeg" show-size />
<InputFile v-model="projectIcon" accept="image/png, image/jpeg, image/webp" show-size />
</div>
<Button :disabled="!cropperResult" :loading="loading.uploadIcon" @click="uploadIcon">
<IconMdiUpload />
Expand Down

0 comments on commit 5addf88

Please sign in to comment.