From 9e00d816ae51e1a23f5f5a9fa4378965b63a007b Mon Sep 17 00:00:00 2001 From: Daniel Maixner Date: Sun, 8 Oct 2023 14:03:05 +0200 Subject: [PATCH] Fix hud text-shadow, round damage no enemy --- www/assets/css/hud.css | 4 +++- www/assets/js/hud/RoundDamageStat.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/assets/css/hud.css b/www/assets/css/hud.css index 1080164..11f0402 100644 --- a/www/assets/css/hud.css +++ b/www/assets/css/hud.css @@ -108,7 +108,6 @@ } #hud section { - text-shadow: 0px 0px 2px var(--hud-color-shadow); display: flex; flex-direction: row; height: 100%; @@ -120,6 +119,7 @@ display: flex; flex-direction: column; justify-content: space-between; + text-shadow: 0 0 2px var(--hud-color-shadow); } #hud .right { @@ -151,6 +151,7 @@ max-height: 1200px; color: white; overflow-y: auto; + text-shadow: none; } #hud #buy-menu, #hud #game-menu { @@ -333,6 +334,7 @@ #hud #round-damage-stat { font-size: 80%; color: #ffffff; + text-shadow: none; margin: 0.9rem 0; } diff --git a/www/assets/js/hud/RoundDamageStat.js b/www/assets/js/hud/RoundDamageStat.js index a185f82..a6f7a19 100644 --- a/www/assets/js/hud/RoundDamageStat.js +++ b/www/assets/js/hud/RoundDamageStat.js @@ -8,7 +8,7 @@ export class RoundDamageStat { } update(damage, enemyPlayers) { - if (damage === null) { + if (damage === null || !enemyPlayers.length) { this.#element.innerHTML = '' return }