Procházet zdrojové kódy

html.c: custom emoji <img>: Resize height to 2em, and put veritcal-align to middle.

Signed-off-by: Yonle <yonle@lecturify.net>
Yonle před 3 roky
rodič
revize
d3e0f7a84b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      html.c

+ 2 - 2
html.c

@@ -66,7 +66,7 @@ xs_str *actor_name(xs_dict *actor)
 
 
                 if (n && i) {
                 if (n && i) {
                     char *u = xs_dict_get(i, "url");
                     char *u = xs_dict_get(i, "url");
-                    xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em\" loading=\"lazy\"/>", u);
+                    xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em; vertical-align: middle;\" loading=\"lazy\"/>", u);
 
 
                     name = xs_replace_i(name, n, img);
                     name = xs_replace_i(name, n, img);
                 }
                 }
@@ -1037,7 +1037,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
 
 
                     if (n && i) {
                     if (n && i) {
                         char *u = xs_dict_get(i, "url");
                         char *u = xs_dict_get(i, "url");
-                        xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em\" "
+                        xs *img = xs_fmt("<img src=\"%s\" style=\"height: 2em; vertical-align: middle;\" "
                                          "loading=\"lazy\" title=\"%s\"/>", u, n);
                                          "loading=\"lazy\" title=\"%s\"/>", u, n);
 
 
                         c = xs_replace_i(c, n, img);
                         c = xs_replace_i(c, n, img);