From cde2a6e2d54dc1ecae16154eca0b834e7aca6010 Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 18 May 2022 13:25:18 +0200 Subject: [PATCH] fix(ui): fix metric category max height calculation --- .../DashboardMetricSelection.tsx | 2 +- .../components/DashboardModal/DashboardModal.tsx | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx index 26c5235c6..fcdf37429 100644 --- a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx +++ b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx @@ -80,7 +80,7 @@ function DashboardMetricSelection(props) {
-
+
{activeCategory && widgetCategories.map((category, index) => (
@@ -47,20 +48,20 @@ function DashboardModal(props) {

- { dashboard.exists() ? "Add metrics to dashboard" : "Create Dashboard" } + { isDashboardExists ? "Add metrics to dashboard" : "Create Dashboard" }

- {dashboard.exists() && } + {isDashboardExists && }
- { !dashboard.exists() && ( + { !isDashboardExists && ( <>

Create new dashboard by choosing from the range of predefined metrics that you care about. You can always add your custom metrics later.

)} - +
{selectedWidgetsCount} Metrics