From 61a06c1d8b01558ae297eae4f39d7b03300edbc7 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 29 Oct 2026 23:34:12 -0700 Subject: Share the cells of the commit and trailer tables The trailer table is laid out to match the commit table, so the two now read their cell spacing from one place. The trailer cells gain the explicit normal weight the commit cells keep, which they already had from inheritance. --- assets/cgit.css | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'assets') diff --git a/assets/cgit.css b/assets/cgit.css index 48dcd98..d013cdb 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -966,14 +966,16 @@ div#cgit table.commit-info { margin-top: 1.5em; } -div#cgit table.commit-info th { +div#cgit table.commit-info th, +div#cgit table.commit-trailers th { text-align: left; font-weight: normal; padding: 0.1em 1em 0.1em 0.1em; vertical-align: top; } -div#cgit table.commit-info td { +div#cgit table.commit-info td, +div#cgit table.commit-trailers td { font-weight: normal; padding: 0.1em 1em 0.1em 0.1em; } @@ -1002,15 +1004,10 @@ div#cgit table.commit-trailers { } div#cgit table.commit-trailers th { - text-align: left; - font-weight: normal; - padding: 0.1em 1em 0.1em 0.1em; - vertical-align: top; white-space: nowrap; } div#cgit table.commit-trailers td { - padding: 0.1em 1em 0.1em 0.1em; overflow-wrap: anywhere; } -- cgit 2.12.1