From 665b206b0fc72f100865a2f495f6954aa716d475 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 2 Jul 2021 09:16:41 +0200 Subject: [PATCH] css: fix debian openlogo background-size for chrom* based browsers The debian one higher than wide and it seems, contrary to my belief, the background-size is not taken for both, height and width if only one param is set, but rather the second paramet height then defaults to `auto` which Firefox and Chromium handle different in this case. Set both to make this fixed. Signed-off-by: Thomas Lamprecht --- src/css/ext6-pmx.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/css/ext6-pmx.css b/src/css/ext6-pmx.css index 843f762..aeac34e 100644 --- a/src/css/ext6-pmx.css +++ b/src/css/ext6-pmx.css @@ -123,12 +123,12 @@ div.right-aligned { .pmx-itype-icon-debian-swirl { padding-left: 22px; - background-size: 16px; + background-size: 16px 16px; /* Chrom* needs both as else it gets cut-off due do non 1:1 ratio */ background-image:url(../images/debian-swirl-openlogo.svg); } .pmx-itype-icon-proxmox-x { padding-left: 22px; - background-size: 16px; + background-size: 16px 16px; /* Not really required here, as here WxH is 1:1 but cannot hurt */ background-image:url(../images/proxmox-symbol-x.svg); } -- 2.39.2