[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH v2] css: make table-layout fixed for diffstat file bar
From: Jeff Smith <whydoubt () gmail ! com>
Date: 2017-04-04 22:16:23
Message-ID: 20170404221623.24739-1-whydoubt () gmail ! com
[Download RAW message or body]
The diffstat file bar is implemented as a table with no (cdata) content.
What does matter is the size of the cells. This matches well with using
table-layout:fixed, which is supposed to improve table rendering speed.
This also avoids a case where Chrome (and Opera) will sometimes show
some red in the bar even when there are 0 removed lines.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
---
cgit.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/cgit.css b/cgit.css
index 1dc2c11..5da2c99 100644
--- a/cgit.css
+++ b/cgit.css
@@ -479,6 +479,7 @@ div#cgit table.diffstat td.graph {
div#cgit table.diffstat td.graph table {
border: none;
+ table-layout: fixed;
}
div#cgit table.diffstat td.graph td {
--
2.9.3
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic