1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05: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:
Gusted 2022-07-10 18:49:13 +00:00 committed by GitHub
parent e24b0fc7b8
commit 2399b5900a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: