diff options
| author | Eric Wong <e@80x24.org> | 2026-05-21 15:04:30 +0200 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2026-05-21 15:26:55 +0200 |
| commit | 0f782947ed10ba7341d95fcf3de5095c3dc2ef8c (patch) | |
| tree | 54bb7f92d0a5a661863eeb1c8e57c1b448e19c7f /ui-log.c | |
| parent | 1854c18658707741c5bf0b5eaca554e083a3729b (diff) | |
| download | cgit-0f782947ed10ba7341d95fcf3de5095c3dc2ef8c.tar.gz cgit-0f782947ed10ba7341d95fcf3de5095c3dc2ef8c.tar.bz2 cgit-0f782947ed10ba7341d95fcf3de5095c3dc2ef8c.zip | |
ui-log: improve decoration display for browsers without CSS
Text-based browsers without CSS support show all the decorations
bunched together without spacing. Rely on a whitespace instead
of CSS support.
Diffstat (limited to 'ui-log.c')
| -rw-r--r-- | ui-log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -77,11 +77,13 @@ void show_commit_decorations(struct commit *commit) * don't display anything. */ break; case DECORATION_REF_LOCAL: + html(" "); cgit_log_link(buf, NULL, "branch-deco", buf, NULL, ctx.qry.vpath, 0, NULL, NULL, ctx.qry.showmsg, 0); break; case DECORATION_REF_TAG: + html(" "); 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); @@ -90,12 +92,14 @@ void show_commit_decorations(struct commit *commit) case DECORATION_REF_REMOTE: if (!ctx.repo->enable_remote_branches) break; + html(" "); cgit_log_link(buf, NULL, "remote-deco", NULL, oid_to_hex(&commit->object.oid), ctx.qry.vpath, 0, NULL, NULL, ctx.qry.showmsg, 0); break; default: + html(" "); cgit_commit_link(buf, NULL, "deco", ctx.qry.head, oid_to_hex(&commit->object.oid), ctx.qry.vpath); |
