commit 8f983d3

default  ·  2024-03-18 11:21:57 +0000 UTC
parent df08b88
Tweaked HTML structure of the people page.
1 files changed,  +5, -5
M html.c
M html.c
+5, -5
 1@@ -2097,9 +2097,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t)
 2         snac_posts = xs_html_tag("details",
 3                 xs_html_attr("open", NULL),
 4                 xs_html_tag("summary",
 5-                    xs_html_text("...")),
 6-                xs_html_tag("div",
 7-                xs_html_attr("class", "snac-posts"))));
 8+                    xs_html_text("..."))));
 9 
10     xs_list *p = list;
11     char *actor_id;
12@@ -2224,8 +2222,10 @@ xs_str *html_people(snac *user)
13     xs_html *html = xs_html_tag("html",
14         html_user_head(user, NULL),
15         xs_html_add(html_user_body(user, 0),
16-            html_people_list(user, wing, L("People you follow"), "i"),
17-            html_people_list(user, wers, L("People that follow you"), "e"),
18+            xs_html_tag("div",
19+                xs_html_attr("class", "snac-posts"),
20+                html_people_list(user, wing, L("People you follow"), "i"),
21+                html_people_list(user, wers, L("People that follow you"), "e")),
22             html_footer()));
23 
24     return xs_html_render_s(html, "<!DOCTYPE html>\n");