about summary refs log tree commit
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-04 22:05:51 +0000
committerEric Wong <e@80x24.org>2021-03-19 20:17:01 +0000
commitab8ff5295cfed27f6c827600fed28376b4540bb4 (patch)
treeee7ad08d6da4bf038ca76954b7abc421b89eb830 /ui-repolist.c
parentd2c4d3fc02b71a0cb473f3a0ec5357ea6b42e4a3 (diff)
downloadcgit-no-css.tar.gz
ui-{tree,repolist}: improve button spacing for browsers w/o CSS no-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.

Signed-off-by: Eric Wong <e@80x24.org>
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 529a203..591929b 100644
--- a/ui-repolist.c
+++ b/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>");
                 }