From 2384fa99a62615c88884d5e0ab7f921f14500646 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 27 Sep 2026 22:04:58 +0300 Subject: html: Improve navigation compatibility Primarily adds spaces between different links to make navigation when CSS is not available easier --- ui-log.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index 9906bbc..3439bce 100644 --- a/ui-log.c +++ b/ui-log.c @@ -65,7 +65,7 @@ void show_commit_decorations(struct commit *commit) deco = get_name_decoration(&commit->object); if (!deco) return; - html(""); + html(" "); while (deco) { struct object_id oid_tag, peeled; int is_annotated = 0; @@ -80,12 +80,14 @@ void show_commit_decorations(struct commit *commit) cgit_log_link(buf, NULL, "branch-deco", buf, NULL, ctx.qry.vpath, 0, NULL, NULL, ctx.qry.showmsg, 0); + html(" "); break; case DECORATION_REF_TAG: if (!refs_read_ref(get_main_ref_store(the_repository), deco->name, &oid_tag) && !peel_object(the_repository, &oid_tag, &peeled, PEEL_OBJECT_VERIFY_TAGGED_OBJECT_TYPE)) is_annotated = !oideq(&oid_tag, &peeled); cgit_tag_link(buf, NULL, is_annotated ? "tag-annotated-deco" : "tag-deco", buf); + html(" "); break; case DECORATION_REF_REMOTE: if (!ctx.repo->enable_remote_branches) @@ -94,11 +96,13 @@ void show_commit_decorations(struct commit *commit) oid_to_hex(&commit->object.oid), ctx.qry.vpath, 0, NULL, NULL, ctx.qry.showmsg, 0); + html(" "); break; default: cgit_commit_link(buf, NULL, "deco", ctx.qry.head, oid_to_hex(&commit->object.oid), ctx.qry.vpath); + html(" "); break; } deco = deco->next; -- cgit v1.3.1-23-gd82d