From 366272a99ab2897376ef1f604f5059e15e339cfc Mon Sep 17 00:00:00 2001 From: Monroe <35408073+Mgetz10@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:09:10 -0500 Subject: [PATCH] enhancement: improve territory display --- .../UsaMap/components/UsaMap.State.tsx | 12 ++----- packages/map/src/scss/map.scss | 31 +++++-------------- 2 files changed, 9 insertions(+), 34 deletions(-) diff --git a/packages/map/src/components/UsaMap/components/UsaMap.State.tsx b/packages/map/src/components/UsaMap/components/UsaMap.State.tsx index 596ca215f..90d72ea1f 100644 --- a/packages/map/src/components/UsaMap/components/UsaMap.State.tsx +++ b/packages/map/src/components/UsaMap/components/UsaMap.State.tsx @@ -121,14 +121,6 @@ const UsaMap = () => { const geoStrokeColor = state.general.geoBorderColor === 'darkGray' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255,255,255,0.7)' - const getTerritoriesClasses = () => { - const screenWidth = window?.visualViewport?.width - let className = 'territories' - if (screenWidth < 700) return 'territories--mobile' - if (screenWidth < 900) return 'territories--tablet' - return className - } - const territories = territoriesData.map((territory, territoryIndex) => { const Shape = isHex ? Territory.Hexagon : Territory.Rectangle @@ -593,12 +585,12 @@ const UsaMap = () => { {territories.length > 0 && ( <> {/* Temporarily make the max width fit the image width */} -