From 73466f1c66f918e5ce285172c69bd682ae25f78b Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sun, 16 Aug 2026 13:12:51 +0200 Subject: fix: Fixed code and linenumbers not lining up for code on safari. Also added minor fixes to improve the scrolling experience on mobile phones. --- cgit.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cgit.css b/cgit.css index 45471a1..1db3571 100644 --- a/cgit.css +++ b/cgit.css @@ -77,6 +77,7 @@ div#cgit table#header td.subem { color: #777; padding-top: 1em; padding-right: 10px; + font-size: 80%; text-align: right; } div#cgit table#header td.sub { @@ -400,6 +401,7 @@ div#cgit table.blob { margin-top: 0.5em; border-top: solid 1px #777; overflow-x: scroll; + overflow-y: hidden; display: block; } @@ -408,6 +410,7 @@ div#cgit table.blob td.lines { margin: 0; padding: 0 0 0 0.5em; vertical-align: top; color: #eee; + -webkit-text-size-adjust: 100%; } div#cgit table.blob td.linenumbers { @@ -588,6 +591,7 @@ div#cgit table.diffstat { display: block; width: 100%; overflow-x: scroll; + overflow-y: hidden; border-collapse: collapse; border: solid 1px #aaa; background-color: #333; -- cgit