From 911834e223ac612bcedd4603b4071ecf0f4cf9e1 Mon Sep 17 00:00:00 2001 From: leccelecce <24962424+leccelecce@users.noreply.github.com> Date: Wed, 9 Apr 2025 21:29:50 +0100 Subject: [PATCH] UI: disable animations on all charts --- web/src/components/graph/LineGraph.tsx | 6 ++++++ web/src/components/graph/StorageGraph.tsx | 3 +++ web/src/components/graph/SystemGraph.tsx | 3 +++ 3 files changed, 12 insertions(+) diff --git a/web/src/components/graph/LineGraph.tsx b/web/src/components/graph/LineGraph.tsx index ef55c9343..6624fc93b 100644 --- a/web/src/components/graph/LineGraph.tsx +++ b/web/src/components/graph/LineGraph.tsx @@ -70,6 +70,9 @@ export function CameraLineGraph({ zoom: { enabled: false, }, + animations: { + enabled: false, + }, }, colors: GRAPH_COLORS, grid: { @@ -197,6 +200,9 @@ export function EventsPerSecondsLineGraph({ zoom: { enabled: false, }, + animations: { + enabled: false, + }, }, colors: GRAPH_COLORS, grid: { diff --git a/web/src/components/graph/StorageGraph.tsx b/web/src/components/graph/StorageGraph.tsx index a02127398..2c5b2184b 100644 --- a/web/src/components/graph/StorageGraph.tsx +++ b/web/src/components/graph/StorageGraph.tsx @@ -25,6 +25,9 @@ export function StorageGraph({ graphId, used, total }: StorageGraphProps) { zoom: { enabled: false, }, + animations: { + enabled: false, + }, }, grid: { show: false, diff --git a/web/src/components/graph/SystemGraph.tsx b/web/src/components/graph/SystemGraph.tsx index aaf838763..631acd577 100644 --- a/web/src/components/graph/SystemGraph.tsx +++ b/web/src/components/graph/SystemGraph.tsx @@ -79,6 +79,9 @@ export function ThresholdBarGraph({ zoom: { enabled: false, }, + animations: { + enabled: false, + }, }, colors: [ ({ value }: { value: number }) => {