]> git.ipfire.org Git - pbs.git/commitdiff
users: Add a default resolution to avatars
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Feb 2025 20:53:32 +0000 (20:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Feb 2025 20:53:32 +0000 (20:53 +0000)
Otherwise we are receiving the original image which might be huge and
usually is not square.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/users/macros.html

index fe8c7a830a94781dc8c0fe8f9643c7ca862fac27..d9b43fb5a4104a615d8c0d77c7ac758aee39a672 100644 (file)
@@ -18,7 +18,7 @@
 #                                                                             #
 ##############################################################################}
 
-{% macro Avatar(user, size=None) %}
+{% macro Avatar(user, size=256) %}
        <img class="is-rounded"
                src="{{ user | avatar_url(size) }}" alt="{{ user }}">
 {% endmacro %}