snac2

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

commit 2218889b43f0393c1d41be62669d3be8389a3779
parent 755d997fb1fa5189cd227fa57fd8d4b5ad4f7819
Author: default <nobody@localhost>
Date:   Thu,  4 Jan 2024 10:35:27 +0100

In the people page, followers and following lists are foldable.

Diffstat:
Mhtml.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/html.c b/html.c @@ -1982,8 +1982,12 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t) xs_html_tag("h2", xs_html_attr("class", "snac-header"), xs_html_text(header)), - snac_posts = xs_html_tag("div", - xs_html_attr("class", "snac-posts"))); + snac_posts = xs_html_tag("details", + xs_html_attr("open", NULL), + xs_html_tag("summary", + xs_html_text("...")), + xs_html_tag("div", + xs_html_attr("class", "snac-posts")))); xs_list *p = list; char *actor_id;