From 35a89b81c42a964ff47dc28e96aefca566300982 Mon Sep 17 00:00:00 2001 From: Weilbyte Date: Wed, 8 Jul 2020 22:10:40 +0200 Subject: [PATCH] Change default values --- PVEDiscordDark/js/PVEDiscordDark.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVEDiscordDark/js/PVEDiscordDark.js b/PVEDiscordDark/js/PVEDiscordDark.js index 8b8a502..2ec85bd 100644 --- a/PVEDiscordDark/js/PVEDiscordDark.js +++ b/PVEDiscordDark/js/PVEDiscordDark.js @@ -5,8 +5,8 @@ const swapLogo = async function() { var node = imgElements[i] if (node.src.includes('proxmox_logo.png')) { found = true; - var width = (node.parentElement.clientWidth == undefined || node.parentElement.clientWidth == 0) ? 177 : node.parentElement.clientWidth; - var height = (node.parentElement.clientHeight == undefined || node.parentElement.clientHeight == 0) ? 34 : node.parentElement.clientHeight; + var width = (node.parentElement.clientWidth == undefined || node.parentElement.clientWidth == 0) ? 172 : node.parentElement.clientWidth; + var height = (node.parentElement.clientHeight == undefined || node.parentElement.clientHeight == 0) ? 30 : node.parentElement.clientHeight; node.parentElement.parentElement.style.background = '#23272A'; node.setAttribute('height', `${height}px`); node.setAttribute('width', `${width}px`);