From 30c962e95e0128d896a38897d533bafddfe3f8a2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 21 Jan 2026 10:38:06 +0000 Subject: [PATCH] fix: Weather widget positioning and z-index - Position at 64px from top (desktop & mobile) - z-index 830 (above FAB, below searchbar dropdown) - Throttle map updates to 2 seconds - Click outside to close expanded view Co-Authored-By: Claude Opus 4.5 --- src/apps/AppOverlay.css | 6 +++--- src/apps/weather/WeatherWidget.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/AppOverlay.css b/src/apps/AppOverlay.css index 6d6263b..5930a01 100644 --- a/src/apps/AppOverlay.css +++ b/src/apps/AppOverlay.css @@ -9,7 +9,7 @@ right: 0; bottom: 0; pointer-events: none; - z-index: 500; + z-index: 830; /* Above FAB (820) but below searchbar dropdown (850) */ overflow: hidden; } @@ -24,7 +24,7 @@ } .app-slot-top-left { - top: 78px; /* Below search bar */ + top: 64px; /* Below search bar */ left: 13px; align-items: flex-start; } @@ -157,7 +157,7 @@ @media (max-width: 640px) { .app-slot-top-left, .app-slot-top-right { - top: 60px; + top: 64px; } .app-slot-bottom-left, diff --git a/src/apps/weather/WeatherWidget.jsx b/src/apps/weather/WeatherWidget.jsx index dcbd73a..dd59784 100644 --- a/src/apps/weather/WeatherWidget.jsx +++ b/src/apps/weather/WeatherWidget.jsx @@ -144,7 +144,7 @@ export default function WeatherWidget({ appInstanceId, appHost, config = {} }) { if (!context || context.sectorId === lastSectorId) return; const now = Date.now(); - if (now - lastRequestTimeRef.current < 1000) return; // Throttle: 1 second min + if (now - lastRequestTimeRef.current < 2000) return; // Throttle: 2 seconds min setLastSectorId(context.sectorId); lastRequestTimeRef.current = now;