diff --git a/src/features/projectsV2/ProjectDetails/index.tsx b/src/features/projectsV2/ProjectDetails/index.tsx index 609fa682d8..c8426b785d 100644 --- a/src/features/projectsV2/ProjectDetails/index.tsx +++ b/src/features/projectsV2/ProjectDetails/index.tsx @@ -127,7 +127,8 @@ const ProjectDetails = ({ selectedPlantLocation?.type === 'multi-tree-registration') && !isMobile; const PLANTATION_TYPES = ['multi-tree-registration', 'single-tree-registration'] - const shouldShowOtherIntervention = (hoveredPlantLocation !== null && !PLANTATION_TYPES.includes(hoveredPlantLocation.type)) || (selectedPlantLocation !== null && !PLANTATION_TYPES.includes(selectedPlantLocation.type)) + const shouldShowOtherIntervention = (hoveredPlantLocation !== null && !PLANTATION_TYPES.includes(hoveredPlantLocation.type)) || (selectedPlantLocation !== null && !PLANTATION_TYPES.includes(selectedPlantLocation.type)) && + !isMobile; const shouldShowSinglePlantInfo = (hoveredPlantLocation?.type === 'single-tree-registration' || selectedPlantLocation?.type === 'single-tree-registration' || diff --git a/src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss b/src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss index ad8526d1d5..c712a50963 100644 --- a/src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss +++ b/src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss @@ -15,7 +15,7 @@ top: 101px; right: 10px; z-index: 2px; - width: 94%; + width: 85%; > .exitMapModeButton { z-index: 2; diff --git a/src/features/projectsV2/ProjectsMap/index.tsx b/src/features/projectsV2/ProjectsMap/index.tsx index 6e4757e93f..e2330887b1 100644 --- a/src/features/projectsV2/ProjectsMap/index.tsx +++ b/src/features/projectsV2/ProjectsMap/index.tsx @@ -178,7 +178,7 @@ function ProjectsMap(props: ProjectsMapProps) { const mapContainerClass = `${styles.mapContainer} ${styles[mobileOS !== undefined ? mobileOS : ''] }`; const PLANTATION_TYPES = ['multi-tree-registration', 'single-tree-registration'] - const shouldShowOtherIntervention = (selectedPlantLocation !== null && !PLANTATION_TYPES.includes(selectedPlantLocation.type)) + const shouldShowOtherIntervention = props.isMobile && (selectedPlantLocation !== null && !PLANTATION_TYPES.includes(selectedPlantLocation.type)) return ( <>