]> source.dussan.org Git - gitea.git/commit
Fix vertical align of committer avatar rendered by email address (#21884) (#21919)
authorXinyu Zhou <i@sourcehut.net>
Thu, 24 Nov 2022 04:00:43 +0000 (12:00 +0800)
committerGitHub <noreply@github.com>
Thu, 24 Nov 2022 04:00:43 +0000 (22:00 -0600)
commit6117c8b15a2ea8da84b02f9b2c7735ae2ebc1491
tree145f3e527956f16ec4fe4bb115fcaa948bad338e
parentba16df8da3905e92639dce3cd0132ac08cee8b61
Fix vertical align of committer avatar rendered by email address (#21884) (#21919)

Backport #21884

Committer avatar rendered by `func AvatarByEmail` are not vertical align
as `func Avatar` does.

- Replace literals `ui avatar` and `ui avatar vm` with the constant
`DefaultAvatarClass`

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
models/avatars/avatar.go
modules/templates/helper.go