From 48e0a961fb66d2512932b41e079b563c8cee3cb7 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 19 Jul 2026 17:34:02 -1000 Subject: Declutter the interface on small screens --- source/ui-log.c | 12 ++++++------ source/ui-refs.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'source') diff --git a/source/ui-log.c b/source/ui-log.c index 5f774e2..ff02d9a 100644 --- a/source/ui-log.c +++ b/source/ui-log.c @@ -245,7 +245,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, oid_to_hex(&commit->object.oid), ctx.qry.vpath); show_commit_decorations(commit); - html(""); + html(""); cgit_open_filter(ctx.repo->email_filter, info->author_email, "log"); html_txt(info->author); cgit_close_filter(ctx.repo->email_filter); @@ -264,9 +264,9 @@ static void print_commit(struct commit *commit, struct rev_info *revs) } if (ctx.repo->enable_log_filecount) - htmlf("%d", files); + htmlf("%d", files); if (ctx.repo->enable_log_linecount) - htmlf("-%d/" + htmlf("-%d/" "+%d", rem_lines, add_lines); html("\n"); @@ -486,15 +486,15 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern ctx.qry.follow); html(")"); } - html("Author"); + html("Author"); if (rev.graph) html("Age"); if (ctx.repo->enable_log_filecount) { - html("Files"); + html("Files"); columns++; } if (ctx.repo->enable_log_linecount) { - html("Lines"); + html("Lines"); columns++; } html("\n"); diff --git a/source/ui-refs.c b/source/ui-refs.c index a38bfc4..c64b344 100644 --- a/source/ui-refs.c +++ b/source/ui-refs.c @@ -70,7 +70,7 @@ static int print_branch(struct refinfo *ref) if (ref->object->type == OBJ_COMMIT) { cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL); - html(""); + html(""); cgit_open_filter(ctx.repo->email_filter, info->author_email, "refs"); html_txt(info->author); cgit_close_filter(ctx.repo->email_filter); @@ -88,7 +88,7 @@ static void print_tag_header(void) { html("Tag" "Download" - "Author" + "Author" "Age\n"); } @@ -114,7 +114,7 @@ static int print_tag(struct refinfo *ref) cgit_print_snapshot_links(ctx.repo, name, "  "); else cgit_object_link(obj); - html(""); + html(""); if (info) { if (info->tagger) { cgit_open_filter(ctx.repo->email_filter, info->tagger_email, "refs"); @@ -188,7 +188,7 @@ static void print_branch_header(void) { html("Branch" "Commit message" - "Author" + "Author" "Age\n"); } -- cgit v2.8.0