Skip to content

Commit

Permalink
minor UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shyambhongle committed Dec 27, 2024
1 parent 1659928 commit 282b8e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/features/projectsV2/ProjectDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
top: 101px;
right: 10px;
z-index: 2px;
width: 94%;
width: 85%;

> .exitMapModeButton {
z-index: 2;
Expand Down
2 changes: 1 addition & 1 deletion src/features/projectsV2/ProjectsMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<MapControls {...mapControlProps} />
Expand Down

0 comments on commit 282b8e4

Please sign in to comment.