From 9768a542b397f4702d08ff17c0c8d9a724bdfd56 Mon Sep 17 00:00:00 2001 From: Sina Blattmann Date: Thu, 20 Jul 2023 17:50:43 +0200 Subject: [PATCH] bugfix --- .../src/components/Installations/Log/Log.tsx | 1 + .../Installations/Log/ScalarGraph.tsx | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/typescript/Frontend/src/components/Installations/Log/Log.tsx b/typescript/Frontend/src/components/Installations/Log/Log.tsx index 2cc0cdb1a..430647ec2 100644 --- a/typescript/Frontend/src/components/Installations/Log/Log.tsx +++ b/typescript/Frontend/src/components/Installations/Log/Log.tsx @@ -19,6 +19,7 @@ const Log = () => { borderBottomLeftRadius: 4, borderBottomRightRadius: 4, borderColor: theme.palette.text.disabled, + overflowX: "auto", }} > diff --git a/typescript/Frontend/src/components/Installations/Log/ScalarGraph.tsx b/typescript/Frontend/src/components/Installations/Log/ScalarGraph.tsx index 844dc4793..4565931bb 100644 --- a/typescript/Frontend/src/components/Installations/Log/ScalarGraph.tsx +++ b/typescript/Frontend/src/components/Installations/Log/ScalarGraph.tsx @@ -205,6 +205,15 @@ const ScalarGraph = () => { ); } + } else if (checkedToggles.length === 0) { + return ( + + + + ); } else if (toggles === null) { return ( @@ -215,14 +224,7 @@ const ScalarGraph = () => { ); } - return ( - - - - ); + return null; }; return <>{renderGraphs()};