* [PATCH] css: make table-layout fixed for diffstat file bar
@ 2017-04-04 21:09 whydoubt
0 siblings, 0 replies; only message in thread
From: whydoubt @ 2017-04-04 21:09 UTC (permalink / raw)
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 at gmail.com>
---
cgit.css | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cgit.css b/cgit.css
index 1dc2c11..9e50158 100644
--- a/cgit.css
+++ b/cgit.css
@@ -437,6 +437,10 @@ div#cgit table.diffstat {
background-color: #eee;
}
+div#cgit table.diffstat table {
+ table-layout: fixed;
+}
+
div#cgit table.diffstat th {
font-weight: normal;
text-align: left;
--
2.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-04 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04 21:09 [PATCH] css: make table-layout fixed for diffstat file bar whydoubt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).