]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
css: fix debian openlogo background-size for chrom* based browsers
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 07:16:41 +0000 (09:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 07:18:45 +0000 (09:18 +0200)
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 <t.lamprecht@proxmox.com>
src/css/ext6-pmx.css

index 843f762516a897d8d94711f0cf5bf04c34659ee3..aeac34e48f3daa45ca5cda721793f404b169c4db 100644 (file)
@@ -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);
 }