add: show avatar image requirements in ui
This commit is contained in:
parent
df32b9d65e
commit
1b77fef470
3 changed files with 19 additions and 11 deletions
|
@ -238,15 +238,23 @@
|
|||
enctype="multipart/form-data"
|
||||
onsubmit="upload_avatar(event)"
|
||||
>
|
||||
<input
|
||||
id="avatar_file"
|
||||
name="file"
|
||||
type="file"
|
||||
accept="image/png,image/jpeg,image/avif,image/webp"
|
||||
class="w-content"
|
||||
/>
|
||||
<div class="flex gap-2 flex-row flex-wrap items-center">
|
||||
<input
|
||||
id="avatar_file"
|
||||
name="file"
|
||||
type="file"
|
||||
accept="image/png,image/jpeg,image/avif,image/webp"
|
||||
class="w-content"
|
||||
/>
|
||||
|
||||
<button class="primary">{{ icon "check" }}</button>
|
||||
<button class="primary">{{ icon "check" }}</button>
|
||||
</div>
|
||||
|
||||
<span class="fade"
|
||||
>Images must be less than 8 MB large. Animated images
|
||||
such as GIFs or APNGs will not work to do all images
|
||||
being formatted as AVIF.</span
|
||||
>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
@ -655,7 +663,7 @@
|
|||
],
|
||||
[
|
||||
["biography", "Biography"],
|
||||
"{{ profile.settings.biography }}",
|
||||
settings.biography,
|
||||
"textarea",
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue