diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Let the listings wrap and the diff tables scroll
Diffstat (limited to 'source/ui-diff.c')
-rw-r--r--source/ui-diff.c2
1 file changed, 2 insertions, 0 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c
index 09e2790..f0ad58a 100644
--- a/source/ui-diff.c
+++ b/source/ui-diff.c
@@ -707,6 +707,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
return;
}
+ html("<div class='diff-scroll'>");
if (use_ssdiff) {
html("<table summary='ssdiff' class='ssdiff'>");
} else {
@@ -727,6 +728,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
if (!use_ssdiff)
html("</td></tr>");
html("</table>");
+ html("</div>");
if (show_ctrls)
cgit_print_layout_end();