fix: fix a little

This commit is contained in:
MystiPanda 2024-03-10 00:41:18 +08:00
parent 41fbf5ba36
commit 9315fe36b6

View File

@ -75,7 +75,7 @@ export const LayoutTraffic = () => {
}; };
const valStyle: any = { const valStyle: any = {
component: "span", component: "span",
color: "primary", // color: "primary",
textAlign: "center", textAlign: "center",
sx: { flex: "1 1 56px", userSelect: "none" }, sx: { flex: "1 1 56px", userSelect: "none" },
}; };
@ -105,7 +105,9 @@ export const LayoutTraffic = () => {
{...iconStyle} {...iconStyle}
color={+up > 0 ? "secondary" : "disabled"} color={+up > 0 ? "secondary" : "disabled"}
/> />
<Typography {...valStyle}>{up}</Typography> <Typography {...valStyle} color="secondary">
{up}
</Typography>
<Typography {...unitStyle}>{upUnit}/s</Typography> <Typography {...unitStyle}>{upUnit}/s</Typography>
</Box> </Box>
@ -114,7 +116,9 @@ export const LayoutTraffic = () => {
{...iconStyle} {...iconStyle}
color={+down > 0 ? "primary" : "disabled"} color={+down > 0 ? "primary" : "disabled"}
/> />
<Typography {...valStyle}>{down}</Typography> <Typography {...valStyle} color="primary">
{down}
</Typography>
<Typography {...unitStyle}>{downUnit}/s</Typography> <Typography {...unitStyle}>{downUnit}/s</Typography>
</Box> </Box>