List for cgit developers and users
 help / color / mirror / Atom feed
From: whydoubt at gmail.com (Jeff Smith)
Subject: [PATCH v2] css: make table-layout fixed for diffstat file bar
Date: Tue,  4 Apr 2017 17:16:23 -0500	[thread overview]
Message-ID: <20170404221623.24739-1-whydoubt@gmail.com> (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 | 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



                 reply	other threads:[~2017-04-04 22:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170404221623.24739-1-whydoubt@gmail.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).