From 56ebdd7670f1beab1d38021d136cf65453190d68 Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 26 Mar 2026 22:31:21 +0000 Subject: [PATCH] fix(wifi): radar bssidToAngle divisor, Firefox SVG transform-origin, zone label clarity Co-Authored-By: Claude Sonnet 4.6 --- static/css/index.css | 1 + static/js/modes/wifi.js | 2 +- templates/index.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/css/index.css b/static/css/index.css index 555e661..51fddf4 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -3856,6 +3856,7 @@ header h1 .tagline { .wifi-zone.far .wifi-zone-count { color: var(--accent-red); } .wifi-radar-sweep { + transform-box: view-box; transform-origin: 105px 105px; animation: wifi-radar-rotate 3s linear infinite; } diff --git a/static/js/modes/wifi.js b/static/js/modes/wifi.js index 1842ca6..8fb44c4 100644 --- a/static/js/modes/wifi.js +++ b/static/js/modes/wifi.js @@ -1497,7 +1497,7 @@ const WiFiMode = (function() { for (let i = 0; i < bssid.length; i++) { hash = (hash * 31 + bssid.charCodeAt(i)) & 0xffffffff; } - return (hash >>> 0) / 0xffffffff * 2 * Math.PI; + return (hash >>> 0) / 0x100000000 * 2 * Math.PI; } function renderRadar(networksList) { diff --git a/templates/index.html b/templates/index.html index e7a4bce..fdc14be 100644 --- a/templates/index.html +++ b/templates/index.html @@ -923,7 +923,7 @@
0 - Near + Close
0