commit 63dbb5d

default  ·  2023-11-25 09:25:40 +0000 UTC
parent 1359a56
More xs_html tweaks.
1 files changed,  +11, -5
M html.c
M html.c
+11, -5
 1@@ -1108,14 +1108,16 @@ xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5)
 2         xs *form_id = xs_fmt("%s_edit_form", md5);
 3         xs *redir   = xs_fmt("%s_entry", md5);
 4 
 5-        xs_html_add(controls, xs_html_tag("p",
 6+        xs_html_add(controls, xs_html_tag("div",
 7+            xs_html_tag("p", NULL),
 8             html_note(snac, L("Edit..."),
 9                 div_id, form_id,
10                 "", prev_src,
11                 id, NULL,
12                 xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"),
13                 xs_stock_false, redir,
14-                NULL, 0)));
15+                NULL, 0)),
16+            xs_html_tag("p", NULL));
17     }
18 
19     { /** reply **/
20@@ -1125,14 +1127,16 @@ xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5)
21         xs *form_id = xs_fmt("%s_reply_form", md5);
22         xs *redir   = xs_fmt("%s_entry", md5);
23 
24-        xs_html_add(controls, xs_html_tag("p",
25+        xs_html_add(controls, xs_html_tag("div",
26+            xs_html_tag("p", NULL),
27             html_note(snac, L("Reply..."),
28                 div_id, form_id,
29                 "", ct,
30                 NULL, NULL,
31                 xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"),
32                 xs_stock_false, redir,
33-                id, 0)));
34+                id, 0)),
35+            xs_html_tag("p", NULL));
36     }
37 
38     return controls;
39@@ -1919,13 +1923,15 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t)
40             xs *dm_form_id = xs_fmt("%s_reply_form", md5);
41 
42             xs_html_add(snac_controls,
43+                xs_html_tag("p", NULL),
44                 html_note(snac, L("Direct Message..."),
45                     dm_div_id, dm_form_id,
46                     "", "",
47                     NULL, actor_id,
48                     xs_stock_false, "",
49                     xs_stock_false, NULL,
50-                    NULL, 0));
51+                    NULL, 0),
52+                xs_html_tag("p", NULL));
53 
54             xs_html_add(snac_post, snac_controls);
55