Fix shortcode emoji line height

This commit is contained in:
Daniele Tonon
2024-03-09 15:11:59 +01:00
parent dbe23866ff
commit 2e3aa0fa0b

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-5 inline leading-4 m-0" src="`+u.String()+`" alt=":`+tag[1]+`:"/>`) content = strings.ReplaceAll(content, ":"+tag[1]+":", `<img class="h-[29px] inline m-0" src="`+u.String()+`" alt=":`+tag[1]+`:"/>`)
} }
} }
} }