commit bd81708
default
·
2023-06-28 09:04:07 +0000 UTC
parent e9711f9
New CSS class snac-post-header, that wraps the avatar + name + link of a post.
1 files changed,
+3,
-1
M
html.c
M
html.c
+3,
-1
1@@ -81,7 +81,7 @@ xs_str *actor_name(xs_dict *actor)
2 xs_str *html_actor_icon(xs_str *os, char *actor,
3 const char *date, const char *udate, const char *url, int priv)
4 {
5- xs *s = xs_str_new(NULL);
6+ xs *s = xs_str_new("<div class=\"snac-post-header\">\n");
7
8 xs *avatar = NULL;
9 char *v;
10@@ -169,6 +169,8 @@ xs_str *html_actor_icon(xs_str *os, char *actor,
11 s = xs_str_cat(s, s1);
12 }
13
14+ s = xs_str_cat(s, "</div>\n");
15+
16 return xs_str_cat(os, s);
17 }
18