add: allow supporters to upload gif avatars/banners

This commit is contained in:
trisua 2025-05-04 16:19:34 -04:00
parent cf38022597
commit e727de9c63
10 changed files with 231 additions and 52 deletions

View file

@ -311,7 +311,7 @@
id="avatar_file"
name="file"
type="file"
accept="image/png,image/jpeg,image/avif,image/webp"
accept="image/png,image/jpeg,image/avif,image/webp,image/gif"
class="w-content"
/>
@ -319,9 +319,7 @@
</div>
<span class="fade"
>Images must be less than 8 MB large. Animated images
such as GIFs or APNGs will not work because of all
images being formatted as AVIF.</span
>Images must be less than 8 MB large. Animated GIFs are only supported for supporter users. GIFs can be at most 2 MB large.</span
>
</form>
</div>
@ -1071,7 +1069,7 @@
"color",
{
description:
"Text on elements with the surface backgrounds.",
"Text on elements with the surface background.",
},
],
[

View file

@ -845,7 +845,7 @@ media_theme_pref();
onchange="window.update_field_with_color('${option.key}', event.target.value)"
value="${option.value}"
id="${option.key}/color"
style="width: 4rem"
style="width: 4rem; height: 32px"
/>
<input
@ -856,6 +856,7 @@ media_theme_pref();
id="${option.key}"
value="${option.value}"
class="w-full"
style="height: 32px"
/>
</div>