Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Tidy the diff and stat options panel
Its caption sat above the box, each select took its own width, and the reload button hung indented under them. The caption is now the panel's header strip, the selects and the button share one column at the width of the widest select, and the labels lose their colons to match the commit details.
Diffstat (limited to '')
-rw-r--r--source/ui-stats.c6
1 file changed, 3 insertions, 3 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c
index a332335..e4dcf8e 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -373,20 +373,20 @@ static void print_options_form(const struct cgit_period *period, int top)
int choices, i;
html("<div class='cgit-panel'>\n");
- html("<strong>stat options</strong>");
+ html("<strong>Stat options</strong>");
html("<form method='get' aria-label='Stat options'>");
cgit_add_hidden_formfields(1, 0, "stats");
html("<div class='fields'>");
if (ctx.repo->max_stats > 1) {
choices = ctx.repo->max_stats;
- html("<label for='stats-period'>Period:</label>");
+ html("<label for='stats-period'>period</label>");
html("<select id='stats-period' name='period'>");
for (i = 0; i < choices; i++)
html_option(cgit_fmt("%c", periods[i].code), periods[i].name,
cgit_fmt("%c", period->code));
html("</select>\n");
}
- html("<label for='stats-authors'>Authors:</label>");
+ html("<label for='stats-authors'>authors</label>");
html("<select id='stats-authors' name='ofs'>");
html_intoption(10, "10", top);
html_intoption(25, "25", top);