summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorYonle <yonle@lecturify.net>2023-07-18 21:16:22 +0700
committerYonle <yonle@lecturify.net>2023-07-18 21:16:22 +0700
commitd3e0f7a84be573ee28ff1dd6ceb58677e653e178 (patch)
tree985dfe4b16fe465f28b13cc6f275093a38d79617 /html.c
parentfe0d8207953a10bc3eff345f01a7e164d51cf2da (diff)
html.c: custom emoji <img>: Resize height to 2em, and put veritcal-align to middle.
Signed-off-by: Yonle <yonle@lecturify.net>
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 72aa782..c7feff0 100644
--- a/html.c
+++ b/html.c
@@ -66,7 +66,7 @@ xs_str *actor_name(xs_dict *actor)
if (n && i) {
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);
}
@@ -1037,7 +1037,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
if (n && i) {
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);
c = xs_replace_i(c, n, img);