diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-08-15 19:27:30 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-08-16 12:50:57 +0200 | ||
| commit | 21601449d12ce20f9a72836995150eba772eb58b (patch) | |
| tree | 7103aa42832a1399d4a49d3edf6ca788ca00444f /ui-diff.c | |
| parent | f7deb6e32bb486d7ec9613ba60d5d553157d767f (diff) | |
| download | cgit-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.
@@ -195,7 +195,7 @@ static void cgit_print_diffstat(const struct object_id *old_oid, { int i; - html("<div class='diffstat-header'>"); + html("<div style='display:block'><div class='diffstat-header'>"); cgit_diff_link("Diffstat", NULL, NULL, ctx.qry.head, ctx.qry.oid, ctx.qry.oid2, NULL); if (prefix) { @@ -214,7 +214,7 @@ static void cgit_print_diffstat(const struct object_id *old_oid, html("<div class='diffstat-summary'>"); htmlf("%d files changed, %d insertions, %d deletions", files, total_adds, total_rems); - html("</div>"); + html("</div></div>"); } |