From c01414a0a8fc106ec8a72ae4edf0e55f49fca24d Mon Sep 17 00:00:00 2001 From: aadnekar Date: Thu, 28 Sep 2023 15:33:35 +0200 Subject: [PATCH] Revert in order to scale height of chart Should scale the chart area with regards to how many packet types that are being displayed. --- src/features/dashboard/Chart/Chart.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/features/dashboard/Chart/Chart.tsx b/src/features/dashboard/Chart/Chart.tsx index 9f071b73..810389b7 100644 --- a/src/features/dashboard/Chart/Chart.tsx +++ b/src/features/dashboard/Chart/Chart.tsx @@ -193,10 +193,21 @@ export default () => { [dispatch, traceEventFilter] ); + const sectionHeight = 22; + const sectionSeperatorHeight = 1; + const chartHeight = + sectionHeight * traceEventFilter.length + + sectionSeperatorHeight * (traceEventFilter.length - 1); + return ( <> -
+