diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Declutter the interface on small screens
Diffstat (limited to 'source/ui-log.c')
-rw-r--r--source/ui-log.c12
1 file changed, 6 insertions, 6 deletions
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("</td><td>");
+ html("</td><td class='col-author'>");
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("</td><td>%d", files);
+ htmlf("</td><td class='col-count'>%d", files);
if (ctx.repo->enable_log_linecount)
- htmlf("</td><td><span class='deletions'>-%d</span>/"
+ htmlf("</td><td class='col-count'><span class='deletions'>-%d</span>/"
"<span class='insertions'>+%d</span>", rem_lines, add_lines);
html("</td></tr>\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("</th><th class='left'>Author</th>");
+ html("</th><th class='left col-author'>Author</th>");
if (rev.graph)
html("<th class='left'>Age</th>");
if (ctx.repo->enable_log_filecount) {
- html("<th class='left'>Files</th>");
+ html("<th class='left col-count'>Files</th>");
columns++;
}
if (ctx.repo->enable_log_linecount) {
- html("<th class='left'>Lines</th>");
+ html("<th class='left col-count'>Lines</th>");
columns++;
}
html("</tr>\n");