Skip to content

Commit 4a16040

Browse files
wxiaoguangGiteaBot
authored andcommitted
Use object-fit: contain for oauth2 custom icons (go-gitea#26493)
1 parent d1a55aa commit 4a16040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/auth/source/oauth2/providers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (p *AuthSourceProvider) DisplayName() string {
5656

5757
func (p *AuthSourceProvider) IconHTML() template.HTML {
5858
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">`,
6060
html.EscapeString(p.iconURL), html.EscapeString(p.DisplayName()),
6161
)
6262
return template.HTML(img)

0 commit comments

Comments
 (0)