From 63dbb5dcf993832be3d5ece8e003c1c4d985377a Mon Sep 17 00:00:00 2001 From: default Date: Sat, 25 Nov 2023 10:25:40 +0100 Subject: [PATCH] More xs_html tweaks. --- html.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/html.c b/html.c index 49b0de2..8d95738 100644 --- a/html.c +++ b/html.c @@ -1108,14 +1108,16 @@ xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5) xs *form_id = xs_fmt("%s_edit_form", md5); xs *redir = xs_fmt("%s_entry", md5); - xs_html_add(controls, xs_html_tag("p", + xs_html_add(controls, xs_html_tag("div", + xs_html_tag("p", NULL), html_note(snac, L("Edit..."), div_id, form_id, "", prev_src, id, NULL, xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"), xs_stock_false, redir, - NULL, 0))); + NULL, 0)), + xs_html_tag("p", NULL)); } { /** reply **/ @@ -1125,14 +1127,16 @@ xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5) xs *form_id = xs_fmt("%s_reply_form", md5); xs *redir = xs_fmt("%s_entry", md5); - xs_html_add(controls, xs_html_tag("p", + xs_html_add(controls, xs_html_tag("div", + xs_html_tag("p", NULL), html_note(snac, L("Reply..."), div_id, form_id, "", ct, NULL, NULL, xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"), xs_stock_false, redir, - id, 0))); + id, 0)), + xs_html_tag("p", NULL)); } return controls; @@ -1919,13 +1923,15 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t) xs *dm_form_id = xs_fmt("%s_reply_form", md5); xs_html_add(snac_controls, + xs_html_tag("p", NULL), html_note(snac, L("Direct Message..."), dm_div_id, dm_form_id, "", "", NULL, actor_id, xs_stock_false, "", xs_stock_false, NULL, - NULL, 0)); + NULL, 0), + xs_html_tag("p", NULL)); xs_html_add(snac_post, snac_controls);