From 9315fe36b6535065dfa880bc105d23e3942e7cc8 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Sun, 10 Mar 2024 00:41:18 +0800 Subject: [PATCH] fix: fix a little --- src/components/layout/layout-traffic.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/layout/layout-traffic.tsx b/src/components/layout/layout-traffic.tsx index 09405faf..fba08b9a 100644 --- a/src/components/layout/layout-traffic.tsx +++ b/src/components/layout/layout-traffic.tsx @@ -75,7 +75,7 @@ export const LayoutTraffic = () => { }; const valStyle: any = { component: "span", - color: "primary", + // color: "primary", textAlign: "center", sx: { flex: "1 1 56px", userSelect: "none" }, }; @@ -105,7 +105,9 @@ export const LayoutTraffic = () => { {...iconStyle} color={+up > 0 ? "secondary" : "disabled"} /> - {up} + + {up} + {upUnit}/s @@ -114,7 +116,9 @@ export const LayoutTraffic = () => { {...iconStyle} color={+down > 0 ? "primary" : "disabled"} /> - {down} + + {down} + {downUnit}/s