diff --git a/frontend/src/components/footer/index.js b/frontend/src/components/footer/index.js index b38155e802..e0da9ddb06 100644 --- a/frontend/src/components/footer/index.js +++ b/frontend/src/components/footer/index.js @@ -38,6 +38,7 @@ export function Footer() { 'projects/:id/tasks', 'projects/:id/map', 'projects/:id/validate', + 'projects/:id/live', 'manage/organisations/new/', 'manage/teams/new', 'manage/campaigns/new', diff --git a/frontend/src/views/projectLiveMonitoring.css b/frontend/src/views/projectLiveMonitoring.css index 1767519aab..d5d8915313 100644 --- a/frontend/src/views/projectLiveMonitoring.css +++ b/frontend/src/views/projectLiveMonitoring.css @@ -1,13 +1,13 @@ -@import "@hotosm/underpass-ui/dist/index.css"; +@import '@hotosm/underpass-ui/dist/index.css'; .maplibregl-map { - height: 100vh; + height: calc(100vh - 6.05rem); } .top { position: absolute; - top: 150px; - left: 20px; + top: 0.625rem; + left: 0.625rem; z-index: 999; } @@ -17,3 +17,21 @@ svg.pl2 { width: 19px !important; margin-left: 0px; } + +.react-select__control { + border-radius: 0.25rem !important; + min-height: 36px !important; + width: 15.8rem; +} + +.react-select__menu { + width: 15.8rem !important; +} + +.title-text { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} diff --git a/frontend/src/views/projectLiveMonitoring.js b/frontend/src/views/projectLiveMonitoring.js index e0e7d588c8..188ef00a4e 100644 --- a/frontend/src/views/projectLiveMonitoring.js +++ b/frontend/src/views/projectLiveMonitoring.js @@ -10,6 +10,7 @@ import { UnderpassValidationStats, } from '@hotosm/underpass-ui'; import { Link } from 'react-router-dom'; +import { useDispatch } from 'react-redux'; import { ProjectVisibilityBox } from '../components/projectDetail/visibilityBox'; import { ProjectStatusBox } from '../components/projectDetail/statusBox'; @@ -89,6 +90,7 @@ const mappingTypesFeatureTypes = { export function ProjectLiveMonitoring() { const { id } = useParams(); + const dispatch = useDispatch(); const [coords, setCoords] = useState([0, 0]); const [activeFeature, setActiveFeature] = useState(null); const [tags, setTags] = useState('building'); @@ -170,6 +172,14 @@ export function ProjectLiveMonitoring() { } }, [project]); + // set organization bar visibility to false + useEffect(() => { + dispatch({ type: 'SET_VISIBILITY', isVisible: false }); + return () => { + dispatch({ type: 'SET_VISIBILITY', isVisible: true }); + }; + }, [dispatch]); + const hottheme = HOTTheme(); const defaultMapStyle = { @@ -216,17 +226,18 @@ export function ProjectLiveMonitoring() { ready={!error && !loading} className="pr3" > -
-
-
+
+
+