aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-15 19:27:30 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 12:50:57 +0200
commit21601449d12ce20f9a72836995150eba772eb58b (patch)
tree7103aa42832a1399d4a49d3edf6ca788ca00444f /ui-commit.c
parentf7deb6e32bb486d7ec9613ba60d5d553157d767f (diff)
downloadcgit-21601449d12ce20f9a72836995150eba772eb58b.tar.gz
cgit-21601449d12ce20f9a72836995150eba772eb58b.tar.bz2
cgit-21601449d12ce20f9a72836995150eba772eb58b.zip
feat: Updated the generated html code and css code to be more mobile friendly even on small devices.
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 972e9bc..acf0b25 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -49,7 +49,7 @@ void cgit_print_commit(char *hex, const char *prefix)
cgit_print_layout_start();
cgit_print_diff_ctrls();
html("<table summary='commit info' class='commit-info'>\n");
- html("<tr><th>author</th><td>");
+ html("<tr><th>author</th><td colspan='2'>");
cgit_open_filter(ctx.repo->email_filter, info->author_email, "commit");
html_txt(info->author);
if (!ctx.cfg.noplainemail) {
@@ -57,7 +57,7 @@ void cgit_print_commit(char *hex, const char *prefix)
html_txt(info->author_email);
}
cgit_close_filter(ctx.repo->email_filter);
- html("</td><td class='right'>");
+ html("</td></tr><tr><td></td><td colspan='2' style='text-align: center'>");
html_txt(show_date(info->author_date, info->author_tz,
cgit_date_mode(DATE_ISO8601)));
html("</td></tr>\n");
@@ -69,7 +69,7 @@ void cgit_print_commit(char *hex, const char *prefix)
html_txt(info->committer_email);
}
cgit_close_filter(ctx.repo->email_filter);
- html("</td><td class='right'>");
+ html("</td></tr><tr><td></td><td colspan='2' style='text-align: center'>");
html_txt(show_date(info->committer_date, info->committer_tz,
cgit_date_mode(DATE_ISO8601)));
html("</td></tr>\n");