From 654a96e891f8740ba860365da1ce28d36d35b480 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:19:39 -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/cgit.css') 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