From b7c5623161e55488d1295e1216f68919eca9f60c Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 21:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=BB=88=E7=AB=AF=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/ScanTerminalDashboard.tsx | 108 +++--------------- 1 file changed, 16 insertions(+), 92 deletions(-) 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 && (