summary refs log tree commit diff
path: root/www/git.causal.agency/cgit/ui-repolist.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-04 22:23:24 +0000
committerJune McEnroe <june@causal.agency>2021-01-17 20:03:45 +0000
commitfa7e5519f170173e991ce8b12859215cbc48ff07 (patch)
treee608870b1374713972723867b2c487192e4b3382 /www/git.causal.agency/cgit/ui-repolist.c
parentImprove decoration display for browsers without CSS (diff)
downloadsrc-fa7e5519f170173e991ce8b12859215cbc48ff07.tar.gz
src-fa7e5519f170173e991ce8b12859215cbc48ff07.zip
Improve button spacing for browsers w/o CSS
For browsers on low-end machines running browsers without CSS
support, the default tree view displayed "logplain" when it
should be "log plain".  Stop relying on CSS and add a space
in between elements to improve accessibility.
Diffstat (limited to 'www/git.causal.agency/cgit/ui-repolist.c')
-rw-r--r--www/git.causal.agency/cgit/ui-repolist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/git.causal.agency/cgit/ui-repolist.c b/www/git.causal.agency/cgit/ui-repolist.c
index 529a2038..591929bb 100644
--- a/www/git.causal.agency/cgit/ui-repolist.c
+++ b/www/git.causal.agency/cgit/ui-repolist.c
@@ -353,8 +353,10 @@ void cgit_print_repolist(void)
 		if (ctx.cfg.enable_index_links) {
 			html("<td>");
 			cgit_summary_link("summary", NULL, "button", NULL);
+			html(" ");
 			cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
 				      0, NULL, NULL, ctx.qry.showmsg, 0);
+			html(" ");
 			cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
 			html("</td>");
 		}