From 5b9d81e3a88eda70c57041c61874e01b19955cbb Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 29 Mar 2026 21:34:35 +0100 Subject: [PATCH] fix(bluetooth): add transform-box to radar sweep for Firefox, remove dead radar-sweep rule --- static/css/components/proximity-viz.css | 4 ---- static/css/index.css | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/static/css/components/proximity-viz.css b/static/css/components/proximity-viz.css index cd29378..264dc3b 100644 --- a/static/css/components/proximity-viz.css +++ b/static/css/components/proximity-viz.css @@ -41,10 +41,6 @@ } } -.radar-sweep { - transform-origin: 50% 50%; -} - /* Radar filter buttons */ .bt-radar-filter-btn { transition: all 0.2s ease; diff --git a/static/css/index.css b/static/css/index.css index 44fcfa1..9b7723b 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -4410,7 +4410,8 @@ header h1 .tagline { /* Bluetooth radar — CSS sweep animation (replaces rAF loop in proximity-radar.js) */ .bt-radar-sweep { - transform-origin: 140px 140px; + transform-box: view-box; /* required for consistent SVG transform-origin in Firefox */ + transform-origin: 140px 140px; /* CONFIG.size / 2 = 140 */ animation: bt-radar-rotate 3s linear infinite; }