diff --git a/frontend/components/dashboard/ScanTerminalDashboard.tsx b/frontend/components/dashboard/ScanTerminalDashboard.tsx index 58a5bcb7..8c7db56b 100644 --- a/frontend/components/dashboard/ScanTerminalDashboard.tsx +++ b/frontend/components/dashboard/ScanTerminalDashboard.tsx @@ -677,32 +677,6 @@ function PolyWeatherTerminal({
-
- - setSearchQuery(e.target.value)} - placeholder={t("searchPlaceholder", isEn)} - className="w-full bg-transparent text-xs font-semibold text-slate-800 placeholder-slate-400 outline-none" - /> - {searchQuery && ( - - )} - - / - -
{t("dashboard", isEn)} @@ -794,45 +768,19 @@ function PolyWeatherTerminal({ activeSearchSlotIndex === maximizedSlotIndex ? "" : "overflow-hidden" )} > - {/* Floating actions toolbar */} -
- - -
- String(r.city || "").toLowerCase() === slots[maximizedSlotIndex]) || null} allRows={filteredRegionRows} compact={false} onSearchClick={() => setActiveSearchSlotIndex(maximizedSlotIndex)} + onMaximize={() => setMaximizedSlotIndex(null)} + onClose={() => { + handleSelectCityForSlot(maximizedSlotIndex, null); + setMaximizedSlotIndex(null); + }} + isMaximized={true} + disableClose={slots.filter(Boolean).length <= 1} /> {activeSearchSlotIndex === maximizedSlotIndex && ( @@ -904,45 +852,21 @@ function PolyWeatherTerminal({ activeSearchSlotIndex === slotIndex ? "" : "overflow-hidden" )} > - {/* Floating actions toolbar */} -
- - -
- setActiveSearchSlotIndex(slotIndex)} + onMaximize={() => { + setMaximizedSlotIndex(slotIndex); + setActiveSlotIndex(slotIndex); + }} + onClose={() => { + handleSelectCityForSlot(slotIndex, null); + }} + isMaximized={false} + disableClose={slots.filter(Boolean).length <= 1} /> {activeSearchSlotIndex === slotIndex && (