From d28917a84b61eb75f468d8a223b1f6e4512d6149 Mon Sep 17 00:00:00 2001 From: Dotty Date: Fri, 13 Dec 2024 13:39:50 -0400 Subject: [PATCH 1/2] [TM-1468] change style in table and pieChart --- .../MonitoredTab/components/DataCard.tsx | 28 +++++++++++++------ .../components/EcoRegionDoughnutChart.tsx | 11 ++++---- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/admin/components/ResourceTabs/MonitoredTab/components/DataCard.tsx b/src/admin/components/ResourceTabs/MonitoredTab/components/DataCard.tsx index 31eb0016..9d04869a 100644 --- a/src/admin/components/ResourceTabs/MonitoredTab/components/DataCard.tsx +++ b/src/admin/components/ResourceTabs/MonitoredTab/components/DataCard.tsx @@ -163,8 +163,11 @@ const TABLE_COLUMNS_HECTARES_STRATEGY: ColumnDef[] = [ header: "", enableSorting: false, cell: props => ( -
- +
+
), meta: { style: { width: "5%" } } @@ -205,8 +208,11 @@ const TABLE_COLUMNS_HECTARES_ECO_REGION: ColumnDef[] = [ header: "", enableSorting: false, cell: props => ( -
- +
+
), meta: { style: { width: "5%" } } @@ -247,8 +253,11 @@ const TABLE_COLUMNS_HECTARES_LAND_USE: ColumnDef[] = [ header: "", enableSorting: false, cell: props => ( -
- +
+
), meta: { style: { width: "5%" } } @@ -546,8 +555,11 @@ const DataCard = ({ header: "", enableSorting: false, cell: props => ( -
- +
+
), meta: { style: { top: `${topHeaderFirstTable}`, borderRadius: "0" } } diff --git a/src/admin/components/ResourceTabs/MonitoredTab/components/EcoRegionDoughnutChart.tsx b/src/admin/components/ResourceTabs/MonitoredTab/components/EcoRegionDoughnutChart.tsx index c0a4efc4..fd8c26ab 100644 --- a/src/admin/components/ResourceTabs/MonitoredTab/components/EcoRegionDoughnutChart.tsx +++ b/src/admin/components/ResourceTabs/MonitoredTab/components/EcoRegionDoughnutChart.tsx @@ -84,13 +84,13 @@ const EcoRegionDoughnutChart: React.FC = ({ data }) }; return ( -
+
- + } /> = ({ data }) activeIndex={activeIndex} activeShape={renderActiveShape} > -
-
+
= ({


+
+
+
+
+