Don't specify width in inline images

They don't necessarily need to be square, so only specify height
and let clients make the width fit automatically.
This commit is contained in:
Tulir Asokan
2023-01-29 23:26:58 +02:00
parent 6f4c51852c
commit 694733a4e9
2 changed files with 3 additions and 3 deletions

View File

@@ -353,7 +353,7 @@ func fnListGuilds(ce *WrappedCommandEvent) {
}
var avatarHTML string
if !guild.AvatarURL.IsEmpty() {
avatarHTML = fmt.Sprintf(`<img data-mx-emoticon height="24" width="24" src="%s" alt="" title="Guild avatar"> `, guild.AvatarURL.String())
avatarHTML = fmt.Sprintf(`<img data-mx-emoticon height="24" src="%s" alt="" title="Guild avatar"> `, guild.AvatarURL.String())
}
items = append(items, fmt.Sprintf("<li>%s%s (<code>%s</code>) - %s</li>", avatarHTML, html.EscapeString(guild.Name), guild.ID, status))
}