fix: align widget layouts with visible board size
This commit is contained in:
1 parent
19a887ea55
commit
c8c0458764
61 files changed
+580
-190
No files matched your search
@@ -12,12 +12,14 @@ export const NetworkTrafficChart = ({
|
||||
hasShadow,
|
||||
labelDisplayMode,
|
||||
advanced = false,
|
||||
displayScale,
|
||||
}: {
|
||||
usageOverTime: number[];
|
||||
isUp: boolean;
|
||||
hasShadow: boolean;
|
||||
labelDisplayMode: LabelDisplayModeOption;
|
||||
advanced?: boolean;
|
||||
displayScale?: number;
|
||||
}) => {
|
||||
const chartData = usageOverTime.map((usage, index) => ({ index, usage }));
|
||||
const t = useI18n("widget.systemResources.card");
|
||||
@@ -29,6 +31,7 @@ export const NetworkTrafficChart = ({
|
||||
|
||||
return (
|
||||
<CommonChart
|
||||
displayScale={displayScale}
|
||||
data={chartData}
|
||||
dataKey={"index"}
|
||||
series={[{ name: "usage", color: "yellow.5" }]}
|
||||
|
||||
Reference in new issue
Block a user