diff --git a/modules/templates/util_avatar.go b/modules/templates/util_avatar.go
index f7dd408ee21..0c33ef501c9 100644
--- a/modules/templates/util_avatar.go
+++ b/modules/templates/util_avatar.go
@@ -34,7 +34,7 @@ func AvatarHTML(src string, size int, class, name string) template.HTML {
name = "avatar"
}
- return template.HTML(``)
+ return template.HTML(``)
}
// Avatar renders user avatars. args: user, size (int), class (string)
diff --git a/web_src/css/base.css b/web_src/css/base.css
index babbf4c89dc..6b34588be91 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -463,7 +463,6 @@ img.ui.avatar,
.ui.avatar svg {
border-radius: var(--border-radius);
object-fit: contain;
- aspect-ratio: 1;
}
.ui.error.message .header,
diff --git a/web_src/css/user.css b/web_src/css/user.css
index caabf1834cb..a80764c6985 100644
--- a/web_src/css/user.css
+++ b/web_src/css/user.css
@@ -43,7 +43,6 @@
.user.profile .ui.card #profile-avatar img {
max-width: 100%;
- height: auto;
}
@media (max-width: 767.98px) {