Skip to content

Commit b63a36b

Browse files
committed
Remove temporary crosshair and show pointer for selected site pins
1 parent c809880 commit b63a36b

4 files changed

Lines changed: 17 additions & 52 deletions

File tree

functions/_lib/buildInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const APP_VERSION = "0.8.0";
2-
export const APP_COMMIT = "7a3f74b3";
2+
export const APP_COMMIT = "c809880e";
33
export const APP_BUILD_LABEL = `v${APP_VERSION}+${APP_COMMIT}`;

src/components/MapView.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,11 +1019,6 @@ export function MapView({ isMapExpanded, onToggleMapExpanded }: MapViewProps) {
10191019
}, [hasSimulationTerrain, analysisBounds, srtmTiles, overlayDimensions]);
10201020

10211021
const webglAvailable = useMemo(() => supportsWebgl(), []);
1022-
const pendingPrecisionPosition = pendingNewSiteDraft
1023-
? { lat: pendingNewSiteDraft.lat, lon: pendingNewSiteDraft.lon }
1024-
: pendingSiteMove
1025-
? { lat: pendingSiteMove.currentPosition.lat, lon: pendingSiteMove.currentPosition.lon }
1026-
: null;
10271022
const isBackgroundBusy = isTerrainFetching || isTerrainRecommending || isElevationSyncing;
10281023
const backgroundBusyLabel = isTerrainFetching
10291024
? "Fetching terrain data..."
@@ -1463,16 +1458,6 @@ export function MapView({ isMapExpanded, onToggleMapExpanded }: MapViewProps) {
14631458
</Marker>
14641459
) : null}
14651460

1466-
{pendingPrecisionPosition ? (
1467-
<Marker
1468-
anchor="center"
1469-
latitude={pendingPrecisionPosition.lat}
1470-
longitude={pendingPrecisionPosition.lon}
1471-
>
1472-
<div className="site-precision-crosshair" aria-hidden="true" />
1473-
</Marker>
1474-
) : null}
1475-
14761461
{cursorPoint ? (
14771462
<Marker
14781463
anchor="center"

src/index.css

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -825,14 +825,12 @@ input {
825825
box-shadow: 0 0 0 4px color-mix(in srgb, #ffd166 26%, transparent);
826826
}
827827

828+
.site-pin.is-selected,
828829
.site-pin.is-temporary {
829-
border-color: #ff9f43;
830-
background: color-mix(in srgb, #ff9f43 16%, var(--surface-2));
831-
box-shadow: 0 0 0 3px color-mix(in srgb, #ff9f43 18%, transparent);
832830
position: relative;
833831
}
834832

835-
.site-pin.is-temporary::after {
833+
.site-pin.is-selected::after {
836834
content: "";
837835
position: absolute;
838836
left: 50%;
@@ -842,47 +840,29 @@ input {
842840
height: 0;
843841
border-left: 6px solid transparent;
844842
border-right: 6px solid transparent;
845-
border-top: 8px solid #ff9f43;
843+
border-top: 8px solid #ffd166;
846844
}
847845

848-
.site-precision-crosshair {
849-
width: 24px;
850-
height: 24px;
846+
.site-pin.is-temporary {
847+
border-color: #ff9f43;
848+
background: color-mix(in srgb, #ff9f43 16%, var(--surface-2));
849+
box-shadow: 0 0 0 3px color-mix(in srgb, #ff9f43 18%, transparent);
851850
position: relative;
852-
pointer-events: none;
853851
}
854852

855-
.site-precision-crosshair::before,
856-
.site-precision-crosshair::after {
853+
.site-pin.is-temporary::after {
857854
content: "";
858855
position: absolute;
859856
left: 50%;
860-
top: 50%;
861-
transform: translate(-50%, -50%);
862-
background: #ff9f43;
863-
box-shadow: 0 0 0 1px color-mix(in srgb, #0c1218 70%, transparent);
864-
}
865-
866-
.site-precision-crosshair::before {
867-
width: 18px;
868-
height: 2px;
869-
}
870-
871-
.site-precision-crosshair::after {
872-
width: 2px;
873-
height: 18px;
874-
}
875-
876-
.site-precision-crosshair > span {
877-
display: none;
857+
transform: translateX(-50%);
858+
top: calc(100% + 1px);
859+
width: 0;
860+
height: 0;
861+
border-left: 6px solid transparent;
862+
border-right: 6px solid transparent;
863+
border-top: 8px solid #ff9f43;
878864
}
879865

880-
.site-precision-crosshair {
881-
border: 2px solid color-mix(in srgb, #ff9f43 92%, #fff 8%);
882-
border-radius: 999px;
883-
box-shadow: 0 0 0 2px color-mix(in srgb, #0c1218 64%, transparent);
884-
background: color-mix(in srgb, #ff9f43 16%, transparent);
885-
}
886866

887867
.profile-map-cursor {
888868
width: 12px;

src/lib/buildInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const APP_VERSION = "0.8.0";
2-
export const APP_COMMIT = "7a3f74b3";
2+
export const APP_COMMIT = "c809880e";
33
export const APP_BUILD_LABEL = `v${APP_VERSION}+${APP_COMMIT}`;

0 commit comments

Comments
 (0)