+
- off
-
- {timeSpans.map(({ id, title }) => (
+
- ))}
-
)
diff --git a/src/map/LocationSourceSelector.css b/src/map/LocationSourceSelector.css
index c9915a35..f4489f53 100644
--- a/src/map/LocationSourceSelector.css
+++ b/src/map/LocationSourceSelector.css
@@ -2,3 +2,13 @@
background-color: #959595;
color: #3d3a3a;
}
+
+.location-source-selector.controls .label {
+ display: none;
+}
+
+@media screen and (min-width: 500px) {
+ .location-source-selector.controls .label {
+ display: inline;
+ }
+}
diff --git a/src/map/LocationSourceSelector.tsx b/src/map/LocationSourceSelector.tsx
index d791217a..cc643ead 100644
--- a/src/map/LocationSourceSelector.tsx
+++ b/src/map/LocationSourceSelector.tsx
@@ -5,13 +5,7 @@ import {
LocationSourceLabels,
} from '#map/LocationSourceLabels.js'
import cx from 'classnames'
-import {
- BlendIcon,
- EyeOffIcon,
- HexagonIcon,
- SatelliteIcon,
- WifiIcon,
-} from 'lucide-preact'
+import { BlendIcon, HexagonIcon, SatelliteIcon, WifiIcon } from 'lucide-preact'
import './LocationSourceSelector.css'
@@ -45,15 +39,10 @@ export const LocationSourceSelector = () => {
disabled: !enabled,
})}
>
- {enabled && (
-
- {src === LocationSource.SCELL && }
- {src === LocationSource.MCELL && }
- {src === LocationSource.WIFI && }
- {src === LocationSource.GNSS && }
-
- )}
- {!enabled &&
}
+ {src === LocationSource.SCELL &&
}
+ {src === LocationSource.MCELL &&
}
+ {src === LocationSource.WIFI &&
}
+ {src === LocationSource.GNSS &&
}
{LocationSourceLabels.has(src) && (
{LocationSourceLabels.get(src)}
)}
diff --git a/src/map/LockInfo.tsx b/src/map/LockInfo.tsx
index 7557e408..21d63126 100644
--- a/src/map/LockInfo.tsx
+++ b/src/map/LockInfo.tsx
@@ -1,5 +1,5 @@
import { useMapState } from '#context/MapState.js'
-import { LockIcon } from 'lucide-preact'
+import { UnlockIcon } from 'lucide-preact'
export const LockInfo = () => {
const mapState = useMapState()
@@ -14,7 +14,7 @@ export const LockInfo = () => {
mapState.unlock()
}}
>
-
+
{' '}
to enable the map.
diff --git a/src/map/Map.css b/src/map/Map.css
index e25de510..b630ed1d 100644
--- a/src/map/Map.css
+++ b/src/map/Map.css
@@ -1,7 +1,13 @@
#map {
width: 100%;
- min-height: 50vh;
overflow: clip;
+ aspect-ratio: 3/4;
+}
+
+@media screen and (min-width: 500px) {
+ #map {
+ min-height: 50vh;
+ }
}
section.map {
diff --git a/src/map/MapZoomControls.tsx b/src/map/MapZoomControls.tsx
index 3d96b8e8..f5b2d5b5 100644
--- a/src/map/MapZoomControls.tsx
+++ b/src/map/MapZoomControls.tsx
@@ -87,7 +87,7 @@ export const MapZoomControls = ({
setStyle(MapStyle.LIGHT)
}}
>
-
+
) : (
)}
{(canBeLocked ?? true) && (
@@ -110,7 +110,7 @@ export const MapZoomControls = ({
toggleLock()
}}
>
- {locked ?
:
}
+ {locked ?
:
}
)}
>