mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -628,7 +628,7 @@ func SVG(icon string, others ...interface{}) template.HTML { | |||||||
|  |  | ||||||
| // Avatar renders user avatars. args: user, size (int), class (string) | // Avatar renders user avatars. args: user, size (int), class (string) | ||||||
| func Avatar(item interface{}, others ...interface{}) template.HTML { | 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) { | 	switch t := item.(type) { | ||||||
| 	case *user_model.User: | 	case *user_model.User: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user