loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use `object-fit: contain` for oauth2 custom icons (#26493)

authored by

wxiaoguang and committed by
GitHub
c91a7e8d 19872063

+1 -1
+1 -1
services/auth/source/oauth2/providers.go
··· 56 56 57 57 func (p *AuthSourceProvider) IconHTML() template.HTML { 58 58 if p.iconURL != "" { 59 - img := fmt.Sprintf(`<img class="gt-mr-3" width="20" height="20" src="%s" alt="%s">`, 59 + img := fmt.Sprintf(`<img class="gt-object-contain gt-mr-3" width="20" height="20" src="%s" alt="%s">`, 60 60 html.EscapeString(p.iconURL), html.EscapeString(p.DisplayName()), 61 61 ) 62 62 return template.HTML(img)