summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-28 11:04:07 +0200
committerdefault <nobody@localhost>2023-06-28 11:04:07 +0200
commitbd81708d56f473bcecdbdf9b5efbcf414e89ae9d (patch)
tree83dcf6b16ca4263885e715b5b0f4c6f12eb1f21b
parente9711f94d06c76d213e9d43f9d228a4cf11fdc1a (diff)
New CSS class snac-post-header, that wraps the avatar + name + link of a post.
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index bd9a176..107542a 100644
--- a/html.c
+++ b/html.c
@@ -81,7 +81,7 @@ xs_str *actor_name(xs_dict *actor)
xs_str *html_actor_icon(xs_str *os, char *actor,
const char *date, const char *udate, const char *url, int priv)
{
- xs *s = xs_str_new(NULL);
+ xs *s = xs_str_new("<div class=\"snac-post-header\">\n");
xs *avatar = NULL;
char *v;
@@ -169,6 +169,8 @@ xs_str *html_actor_icon(xs_str *os, char *actor,
s = xs_str_cat(s, s1);
}
+ s = xs_str_cat(s, "</div>\n");
+
return xs_str_cat(os, s);
}