From d6c8bd9860c9b379ccbb0b50c2f9766d2fb93804 Mon Sep 17 00:00:00 2001 From: pmandler-umass Date: Tue, 29 Oct 2024 11:38:14 -0400 Subject: [PATCH] Fix map scrolling and zoom --- src/components/Legend.tsx | 2 +- src/styles/Home.css | 13 ++++++++++--- src/views/Home.tsx | 21 ++++++--------------- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/components/Legend.tsx b/src/components/Legend.tsx index 60c0e17..866ed08 100644 --- a/src/components/Legend.tsx +++ b/src/components/Legend.tsx @@ -49,7 +49,7 @@ function Legend(props: LegendProps) { }, [dataTypeIndex, speciesIndex]); return ( -
+
- - - + {/* Dropdown for data type */} @@ -217,9 +215,7 @@ function Home(this: any) { { /* next row */ } - - - + {/* The dropdown for the species type */} @@ -229,17 +225,12 @@ function Home(this: any) {
{dataInfo[dataIndex].label} of the {taxa[speciesIndex].label}
- { /* next row */ } - - {/* Calls the custom legend component with the data type and species type as parameters. */} - - - -
- {/* Calls the custom timeline component with the current week onChange function as parameters */} -
+ {/* Calls the custom legend component with the data type and species type as parameters. */} + + {/* Calls the custom timeline component with the current week onChange function as parameters */} +
); }