mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Fix vertical align of committer avatar rendered by email address (#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`
This commit is contained in:
		@@ -20,8 +20,12 @@ import (
 | 
			
		||||
	"code.gitea.io/gitea/modules/setting"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// DefaultAvatarPixelSize is the default size in pixels of a rendered avatar
 | 
			
		||||
const DefaultAvatarPixelSize = 28
 | 
			
		||||
const (
 | 
			
		||||
	// DefaultAvatarClass is the default class of a rendered avatar
 | 
			
		||||
	DefaultAvatarClass = "ui avatar vm"
 | 
			
		||||
	// DefaultAvatarPixelSize is the default size in pixels of a rendered avatar
 | 
			
		||||
	DefaultAvatarPixelSize = 28
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// EmailHash represents a pre-generated hash map (mainly used by LibravatarURL, it queries email server's DNS records)
 | 
			
		||||
type EmailHash struct {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user