城市选择器弹框尺寸放大:280→380px,结果列表 240→380px

This commit is contained in:
2569718930@qq.com
2026-05-26 02:53:05 +08:00
parent 67460685e8
commit 2b5d5545e2
2 changed files with 4 additions and 4 deletions
@@ -795,7 +795,7 @@ function PolyWeatherTerminal({
setActiveSearchSlotIndex(null);
}}
onClose={() => setActiveSearchSlotIndex(null)}
className="absolute left-3 top-9 z-50 w-[280px] bg-white border border-slate-200 rounded shadow-lg p-2"
className="absolute left-3 top-9 z-50 w-[380px] bg-white border border-slate-200 rounded shadow-lg p-2"
/>
)}
</div>
@@ -831,7 +831,7 @@ function PolyWeatherTerminal({
setActiveSearchSlotIndex(null);
}}
onClose={() => setActiveSearchSlotIndex(null)}
className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50 w-[280px] bg-white border border-slate-200 rounded shadow-lg p-2"
className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50 w-[380px] bg-white border border-slate-200 rounded shadow-lg p-2"
/>
)}
</div>
@@ -880,7 +880,7 @@ function PolyWeatherTerminal({
setActiveSearchSlotIndex(null);
}}
onClose={() => setActiveSearchSlotIndex(null)}
className="absolute left-3 top-9 z-50 w-[280px] bg-white border border-slate-200 rounded shadow-lg p-2"
className="absolute left-3 top-9 z-50 w-[380px] bg-white border border-slate-200 rounded shadow-lg p-2"
/>
)}
</div>
@@ -243,7 +243,7 @@ export function CitySelectorDropdown({
</div>
{/* Results List */}
<div className="flex-1 overflow-y-auto max-h-[240px] divide-y divide-slate-100">
<div className="flex-1 overflow-y-auto max-h-[380px] divide-y divide-slate-100">
{filteredRows.length === 0 ? (
<div className="p-4 text-center text-slate-400 font-medium">
{isEn ? "No matching cities" : "无匹配城市"}