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 'source/ui-diff.c')
-rw-r--r--source/ui-diff.c8
1 file changed, 4 insertions, 4 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c
index 33d1751..91ad860 100644
--- a/source/ui-diff.c
+++ b/source/ui-diff.c
@@ -572,11 +572,11 @@ void cgit_print_diff_ctrls(void)
int i, selected;
html("<div class='cgit-panel'>\n");
- html("<strong>diff options</strong>");
+ html("<strong>Diff options</strong>");
html("<form method='get' aria-label='Diff options'>");
cgit_add_hidden_formfields(1, 0, ctx.qry.page);
html("<div class='fields'>");
- html("<label for='diff-context'>context:</label>");
+ html("<label for='diff-context'>context</label>");
html("<select id='diff-context' name='context'>");
selected = ctx.qry.context;
if (!selected)
@@ -586,12 +586,12 @@ void cgit_print_diff_ctrls(void)
for (i = 15; i <= MAX_DIFF_CONTEXT_LINES; i += 5)
html_intoption(i, cgit_fmt("%d", i), selected);
html("</select>");
- html("<label for='diff-space'>space:</label>");
+ html("<label for='diff-space'>space</label>");
html("<select id='diff-space' name='ignorews'>");
html_intoption(0, "include", ctx.qry.ignorews);
html_intoption(1, "ignore", ctx.qry.ignorews);
html("</select>");
- html("<label for='diff-mode'>mode:</label>");
+ html("<label for='diff-mode'>mode</label>");
html("<select id='diff-mode' name='dt'>");
selected = ctx.qry.has_difftype ? ctx.qry.difftype : ctx.cfg.difftype;
html_intoption(0, "unified", selected);