diff --git a/frontend/components/dashboard/Dashboard.module.css b/frontend/components/dashboard/Dashboard.module.css index 6ab726e5..cd5d13e7 100644 --- a/frontend/components/dashboard/Dashboard.module.css +++ b/frontend/components/dashboard/Dashboard.module.css @@ -223,53 +223,6 @@ justify-content: center; } -.root :global(.home-map-legend) { - position: fixed; - left: 50%; - bottom: 196px; - transform: translateX(-50%); - z-index: 930; - display: flex; - align-items: center; - gap: 12px; - padding: 8px 14px; - border-radius: 14px; - border: 1px solid rgba(115, 137, 161, 0.18); - background: rgba(6, 12, 22, 0.86); - backdrop-filter: blur(16px); -} - -.root :global(.home-map-legend span) { - color: rgba(203, 213, 225, 0.82); - font-size: 10px; - font-weight: 700; -} - -.root :global(.home-map-legend-bar) { - width: 178px; - height: 8px; - border-radius: 999px; - background: linear-gradient( - 90deg, - #2563eb, - #06b6d4, - #22c55e, - #eab308, - #ef4444 - ); -} - -.root :global(.home-map-legend-values) { - display: flex; - align-items: center; - gap: 8px; -} - -.root :global(.home-map-legend-values span) { - color: rgba(148, 163, 184, 0.72); - font-size: 9px; -} - .weatherAura { position: absolute; inset: 0; diff --git a/frontend/components/dashboard/PolyWeatherDashboard.tsx b/frontend/components/dashboard/PolyWeatherDashboard.tsx index b292b241..3c45c7f1 100644 --- a/frontend/components/dashboard/PolyWeatherDashboard.tsx +++ b/frontend/components/dashboard/PolyWeatherDashboard.tsx @@ -374,33 +374,18 @@ function buildDashboardSummaryCards( function HomeMapToolbar() { const { locale } = useI18n(); return ( - <> -
-
- - {locale === "en-US" ? "Global weather regime" : "全球天气态势"} - - - {locale === "en-US" - ? "Live monitored weather derivatives board" - : "天气衍生品实时监控面板"} - -
+
+
+ + {locale === "en-US" ? "Global weather regime" : "全球天气态势"} + + + {locale === "en-US" + ? "Live monitored weather derivatives board" + : "天气衍生品实时监控面板"} +
- ); }