commit fe0d820

Yonle  ·  2023-07-16 16:01:05 +0000 UTC
parent e6d5ce2
html.c / UX: Give admin page more space

Signed-off-by: Yonle <yonle@lecturify.net>
1 files changed,  +5, -2
M html.c
M html.c
+5, -2
 1@@ -392,6 +392,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
 2         "<div class=\"snac-top-controls\">\n"
 3 
 4         "<div class=\"snac-note\">\n"
 5+        "<details><summary>%s</summary>\n"
 6         "<form autocomplete=\"off\" method=\"post\" "
 7         "action=\"%s/admin/note\" enctype=\"multipart/form-data\">\n"
 8         "<textarea class=\"snac-textarea\" name=\"content\" "
 9@@ -425,6 +426,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
10         "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
11         "</form><p>\n"
12         "</div>\n"
13+        "</details>\n"
14 
15         "<div class=\"snac-top-controls-more\">\n"
16         "<details><summary>%s</summary>\n"
17@@ -528,6 +530,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
18     xs *es6 = encode_html(purge_days);
19 
20     xs *s1 = xs_fmt(_tmpl,
21+        L("New Post..."),
22         snac->actor,
23         L("Sensitive content"),
24         L("Sensitive content description"),
25@@ -547,7 +550,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
26 
27         L("Post"),
28 
29-        L("More options..."),
30+        L("Preferences..."),
31 
32         snac->actor,
33         L("Follow"), L("(by URL or user@host)"),
34@@ -555,7 +558,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
35         snac->actor,
36         L("Boost"), L("(by URL)"),
37 
38-        L("User settings...."),
39+        L("User Settings"),
40         snac->actor,
41         L("Display name"),
42         es1,