Fix auto-scrolling with emotes
All emotes are set to have a height of 28px. This fixes the auto-scroll on message when the message has emotes, but it also forces all emotes to be 28px high.
This commit is contained in:
parent
b4ae3fa9f8
commit
37cf2f7811
|
@ -16,7 +16,7 @@ func ParseEmotesArray(words []string) []string {
|
|||
found := false
|
||||
for key, val := range Emotes {
|
||||
if key == word {
|
||||
newWords = append(newWords, fmt.Sprintf("<img src=\"/emotes/%s\" title=\"%s\" />", val, key))
|
||||
newWords = append(newWords, fmt.Sprintf(`<img src="/emotes/%s" height="28px" title="%s" />`, val, key))
|
||||
found = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue