]> granicus.if.org Git - cgit/commitdiff
css: reset font size for blame oid
authorJohn Keeping <john@keeping.me.uk>
Sun, 13 Feb 2022 15:35:29 +0000 (15:35 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 15:13:58 +0000 (16:13 +0100)
In Firefox, the hashes in the blame UI are out of step with the line
number and content leading to ever increasing vertical misalignment.

This is caused by the .oid class setting font-size to 90%, so override
this back to 100% for the blame case, bringing the height of lines in
all three columns of the table back into step.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
cgit.css

index dfa144d05dd5757b0a4b64225a9e4c27d8ac1223..1b848cf712c9e93c3c29e299008786d6edae87d4 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -363,6 +363,10 @@ div#cgit table.blame td.lines > div > pre {
        top: 0;
 }
 
+div#cgit table.blame .oid {
+       font-size: 100%;
+}
+
 div#cgit table.bin-blob {
        margin-top: 0.5em;
        border: solid 1px black;