From 893e5bc670b51fd9ca450a3cd369baec967dbcd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Fri, 20 Mar 2026 17:26:01 +0800 Subject: [PATCH] :lipstick: Fix font color in dark mode. --- site/src/pages/Dashboard/DashboardPage.css | 11 ----------- site/src/pages/Dashboard/DashboardPage.view.tsx | 3 ++- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 site/src/pages/Dashboard/DashboardPage.css diff --git a/site/src/pages/Dashboard/DashboardPage.css b/site/src/pages/Dashboard/DashboardPage.css deleted file mode 100644 index 2fe0ccf..0000000 --- a/site/src/pages/Dashboard/DashboardPage.css +++ /dev/null @@ -1,11 +0,0 @@ -.recharts-legend-wrapper { - outline: none !important; -} - -.recharts-legend-wrapper * { - outline: none !important; -} - -.recharts-surface { - outline: none !important; -} diff --git a/site/src/pages/Dashboard/DashboardPage.view.tsx b/site/src/pages/Dashboard/DashboardPage.view.tsx index 7cefc11..6a8fb57 100644 --- a/site/src/pages/Dashboard/DashboardPage.view.tsx +++ b/site/src/pages/Dashboard/DashboardPage.view.tsx @@ -14,7 +14,6 @@ import { Link } from "react-router-dom"; import { motion } from "framer-motion"; import { AnimateNumber } from "../../components/AnimateNumber"; import { useTranslation } from "react-i18next"; -import "./DashboardPage.css"; interface DashboardViewProps { stats: DashboardStats; @@ -271,6 +270,8 @@ export function DashboardView({ stats, topology }: DashboardViewProps) { borderRadius: "var(--radius-3)", fontSize: "12px", }} + labelStyle={{ color: "var(--gray-12)" }} + itemStyle={{ color: "var(--gray-12)" }} />