总流量
-+
负载
diff --git a/src/pages/instance/LoadCharts.tsx b/src/pages/instance/LoadCharts.tsx index 8557596..45be96d 100644 --- a/src/pages/instance/LoadCharts.tsx +++ b/src/pages/instance/LoadCharts.tsx @@ -65,8 +65,8 @@ const LoadCharts = memo(({ node, hours, liveData }: LoadChartsProps) => { ); // 样式和颜色 - const cn = "flex flex-col w-full h-full gap-4 justify-between"; - const chartMargin = { top: 10, right: 16, bottom: 10, left: 16 }; + const cn = "flex flex-col w-full overflow-hidden"; + const chartMargin = { top: 8, right: 16, bottom: 8, left: 16 }; const colors = ["#F38181", "#FCE38A", "#EAFFD0", "#95E1D3"]; // 图表配置 @@ -266,6 +266,12 @@ const LoadCharts = memo(({ node, hours, liveData }: LoadChartsProps) => { const DataComponent = config.type === "area" ? Area : (Line as React.ComponentType{error}