From a4308df1b4112dc61d25d1fe39c9bf9c48c796bb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Oct 2026 13:56:47 +0300 Subject: fix(cgit.css): Better handling of non-square logos --- cgit.css | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'cgit.css') diff --git a/cgit.css b/cgit.css index 33c8562..3390f27 100644 --- a/cgit.css +++ b/cgit.css @@ -78,11 +78,15 @@ div#cgit table#header tr:last-child td { padding-bottom: 2em; } - -div#cgit table#header td.logo, div#cgit table#header td.logo img { +div#cgit table#header td.logo { width: 96px; height: 96px; - vertical-align: top; + vertical-align: middle; +} + +div#cgit table#header td.logo img { + width: 95px; + max-height: 96px; } div#cgit table#header td.main { @@ -1375,6 +1379,7 @@ span.signature.verified { } td.sublevel-repo img { - height: 1em; + width: 1em; + max-height: 1em; vertical-align: center; } -- cgit v1.3.1-23-gd82d