aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-07-10 18:49:13 +0000
committerGitHub <noreply@github.com>2022-07-10 19:49:13 +0100
commit2399b5900a3847dbceee730f7cab34554c26da9f (patch)
tree76f50260491fa99a2ebca10d811d63b16a11bc33 /modules/templates
parente24b0fc7b8bfc4dee2554c86ad2dc960c66d10cb (diff)
downloadgitea-2399b5900a3847dbceee730f7cab34554c26da9f.tar.gz
gitea-2399b5900a3847dbceee730f7cab34554c26da9f.zip
Vertical align avatar at middle (#20302)
- 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
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 4679cf9eba..8a15cec2c6 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: