mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge branch 'main' into cloudflare
This commit is contained in:
commit
a68c5be971
@ -32,6 +32,6 @@
|
|||||||
| 日语 | ja | 是 |
|
| 日语 | ja | 是 |
|
||||||
|
|
||||||

|

|
||||||

|
|
||||||

|

|
||||||
|

|
||||||

|

|
||||||
|
@ -13,6 +13,8 @@ import {
|
|||||||
import {
|
import {
|
||||||
ChartConfig,
|
ChartConfig,
|
||||||
ChartContainer,
|
ChartContainer,
|
||||||
|
ChartLegend,
|
||||||
|
ChartLegendContent,
|
||||||
ChartTooltip,
|
ChartTooltip,
|
||||||
ChartTooltipContent,
|
ChartTooltipContent,
|
||||||
} from "@/components/ui/chart";
|
} from "@/components/ui/chart";
|
||||||
@ -228,6 +230,9 @@ export function NetworkChart({
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{activeChart === defaultChart && (
|
||||||
|
<ChartLegend content={<ChartLegendContent />} />
|
||||||
|
)}
|
||||||
{activeChart !== defaultChart && (
|
{activeChart !== defaultChart && (
|
||||||
<Line
|
<Line
|
||||||
isAnimationActive={false}
|
isAnimationActive={false}
|
||||||
|
@ -280,7 +280,7 @@ const ChartLegendContent = React.forwardRef<
|
|||||||
<div
|
<div
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex items-center justify-center gap-4",
|
"flex flex-wrap items-center justify-center gap-4",
|
||||||
verticalAlign === "top" ? "pb-3" : "pt-3",
|
verticalAlign === "top" ? "pb-3" : "pt-3",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
@ -306,7 +306,7 @@ const ChartLegendContent = React.forwardRef<
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{itemConfig?.label}
|
{key}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
Loading…
Reference in New Issue
Block a user