From ff262e488c280c809f3ddc40ae3efd65fd350801 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 19 Jul 2026 16:22:09 -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 v2.8.0