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:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user