Skip to content

Commit 2399b59

Browse files
author
Gusted
authored
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
1 parent e24b0fc commit 2399b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/templates/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ func SVG(icon string, others ...interface{}) template.HTML {
628628

629629
// Avatar renders user avatars. args: user, size (int), class (string)
630630
func Avatar(item interface{}, others ...interface{}) template.HTML {
631-
size, class := parseOthers(avatars.DefaultAvatarPixelSize, "ui avatar image", others...)
631+
size, class := parseOthers(avatars.DefaultAvatarPixelSize, "ui avatar image vm", others...)
632632

633633
switch t := item.(type) {
634634
case *user_model.User:

0 commit comments

Comments
 (0)