From 46fc4fcb561b46a38370280963d0802618884ed1 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 18 Sep 2026 00:52:09 +0000 Subject: [PATCH] Shrink helm knob with explicit CSS specificity --- src/mobile-hud.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mobile-hud.js b/src/mobile-hud.js index b6235ac..6301648 100644 --- a/src/mobile-hud.js +++ b/src/mobile-hud.js @@ -173,11 +173,11 @@ if (!isDesktopPointer.matches) { z-index: 1; } - .steam-helm-knob { + .steam-piece > img.steam-helm-knob { position: absolute; left: 50%; top: 46%; - width: 24%; + width: 16%; height: auto; object-fit: contain; transform: translate(-50%, -50%); @@ -598,7 +598,7 @@ if (!isDesktopPointer.matches) { const radarContacts = radarPiece.querySelector('#steam-radar-contacts'); const setHelmKnob = (x = 0, y = 0) => { - const maxOffset = Math.min(radarPiece.clientWidth * 0.18, 28); + const maxOffset = Math.min(radarPiece.clientWidth * 0.16, 24); const px = Math.max(-1, Math.min(1, x)) * maxOffset; const py = Math.max(-1, Math.min(1, y)) * maxOffset; helmKnob.style.transform = `translate(-50%, -50%) translate(${px}px, ${py}px)`;