snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 1a6c3c5e815933e42f1b0be0e0fa2d44ac78036b
parent 21a99e55081a58f1396d49fb70824f91a8e7c2ab
Author: green <dandelions@disroot.org>
Date:   Sun, 23 Mar 2025 02:32:47 +0100

better control over the emoji class

Diffstat:
Mhtml.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/html.c b/html.c @@ -69,6 +69,7 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p } xs *style = xs_fmt("height: %dem; width: %dem; vertical-align: middle;", ems, ems); + xs *class = xs_fmt("snac-emoji snac-emoji-%d-em", ems); const xs_dict *v; int c = 0; @@ -108,7 +109,7 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p xs_html_attr("src", url), xs_html_attr("alt", n), xs_html_attr("title", n), - xs_html_attr("class", "snac-emoji"), + xs_html_attr("class", class), xs_html_attr("style", style)); xs *s1 = xs_html_render(img);