Fix line height for emoji shortcodes

This commit is contained in:
Daniele Tonon
2024-02-13 22:54:42 +01:00
parent 91f3fa9cd5
commit c78a0ef4aa

View File

@@ -362,7 +362,7 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
if len(tag) >= 3 && isValidShortcode(tag[1]) { if len(tag) >= 3 && isValidShortcode(tag[1]) {
u, err := url.Parse(tag[2]) u, err := url.Parse(tag[2])
if err == nil { if err == nil {
content = strings.ReplaceAll(content, ":"+tag[1]+":", `<img class="h-4 inline leading-5 m-0" src="`+u.String()+`"/>`) content = strings.ReplaceAll(content, ":"+tag[1]+":", `<img class="h-5 inline leading-4 m-0" src="`+u.String()+`"/>`)
} }
} }
} }