From f5d0be00a53f3dddb7ef8b39a5e866ead6d256a3 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 22:55:11 -1000 Subject: Stat oversized diffs instead of inlining them --- assets/cgit.css | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'assets') diff --git a/assets/cgit.css b/assets/cgit.css index b55f002..7f7535d 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -1013,6 +1013,16 @@ div#cgit table.diff td div.del { color: var(--del); } +/* Notice shown in place of a diff that exceeds max-diff-lines or + * max-diff-files, pointing at the page that renders it in full. */ +div#cgit div.truncated, +div#cgit table.ssdiff td.truncated { + color: var(--muted); + font-family: var(--font-sans); + white-space: normal; + padding: 0.4em 0; +} + div#cgit .oid { font-family: var(--font-mono); font-size: 90%; -- cgit 2.12.1