about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-06-21T21·11+0300
committertazjin <tazjin@tvl.su>2022-06-22T10·41+0000
commit807e7ec55f64e52218c27921b580cede6752785a (patch)
treed0b834fb81c7194ecdb141b6e0955309b6bc8351
parent45e7f2c3884fdd81356a74afae19eefcdc37dce8 (diff)
style(3p/cgit): move commit decorations left of subject r/4252
the commit decoration layout is designed for situations where very few
commits have decorations, but every depot commit has a revision.

putting these on the left of the commit subject looks a lot more
reasonable. ideally we would actually put them in the table as a
column, but that'd be a much larger change.

Change-Id: I0b44dbef36b64b183d66278d7ab7e4ff17554684
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5892
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
-rw-r--r--third_party/cgit/ui-log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/cgit/ui-log.c b/third_party/cgit/ui-log.c
index 6cd258c1ccf2..520a7496a807 100644
--- a/third_party/cgit/ui-log.c
+++ b/third_party/cgit/ui-log.c
@@ -252,9 +252,10 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
 			strlcpy(info->subject + i, wrap_symbol, subject_len - i + 1);
 		}
 	}
+	show_commit_decorations(commit);
+        html("&nbsp;");
 	cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,
 			 oid_to_hex(&commit->object.oid), ctx.qry.vpath);
-	show_commit_decorations(commit);
 	html("</td><td>");
 	cgit_open_filter(ctx.repo->email_filter, info->author_email, "log");
 	html_txt(info->author);