From c53faaf958eb74d52ef209a1e2a1fe4f3ab53b44 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 9 Jul 2022 18:45:40 +0200 Subject: [PATCH] Vertical align avatar at middle - Currently the avatar in the navbar is being vertically aligned to the top, this caused that the icon besides it isn't being at the middle of the avatar. Use the `vm` helper class to force the `vertical-align` to be `middle`. - Resolves #20292 --- modules/templates/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 4679cf9ebae4c..8a15cec2c68a0 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -628,7 +628,7 @@ func SVG(icon string, others ...interface{}) template.HTML { // Avatar renders user avatars. args: user, size (int), class (string) func Avatar(item interface{}, others ...interface{}) template.HTML { - size, class := parseOthers(avatars.DefaultAvatarPixelSize, "ui avatar image", others...) + size, class := parseOthers(avatars.DefaultAvatarPixelSize, "ui avatar image vm", others...) switch t := item.(type) { case *user_model.User: