@@ -374,7 +380,13 @@
padding: 12px; min-width: 240px; max-width: 340px; font: 0.8rem system-ui, sans-serif; color: #0f172a;
box-sizing: border-box; max-height: 100%; overflow-y: auto;
}
- .dir-head { font-weight: 700; margin-bottom: 8px; }
+ .dir-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
+ .dir-head { font-weight: 700; margin: 0; }
+ .dir-x {
+ width: 26px; height: 26px; border: none; background: none; cursor: pointer;
+ font-size: 20px; line-height: 1; color: #64748b; border-radius: 6px; text-align: center; padding: 0; flex: none;
+ }
+ .dir-x:hover { background: #f1f5f9; color: #0f172a; }
.point { padding: 6px 8px; background: #f1f5f9; border-radius: 6px; margin: 4px 0; display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.a { background: #16a34a; } .dot.b { background: #dc2626; }
diff --git a/src/lib/components/LocationDialog.svelte b/src/lib/components/LocationDialog.svelte
index 0d43b43..919fc26 100644
--- a/src/lib/components/LocationDialog.svelte
+++ b/src/lib/components/LocationDialog.svelte
@@ -61,6 +61,7 @@
e.stopPropagation()} onkeydown={(e) => { if (e.key === 'Escape') onClose(); }}>
+
{#if isPoint}
{title}
@@ -132,7 +133,13 @@
position: absolute; top: -8px; width: 16px; height: 16px; background: #fff;
transform: translateX(-50%) rotate(45deg); border-radius: 3px; box-shadow: -2px -2px 6px rgba(0,0,0,.08);
}
- .ctx-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
+ .ctx-x {
+ position: absolute; top: 6px; right: 8px; width: 24px; height: 24px;
+ border: none; background: none; cursor: pointer; font-size: 18px; line-height: 1;
+ color: #64748b; border-radius: 6px; text-align: center; padding: 0;
+ }
+ .ctx-x:hover { background: #f1f5f9; color: #0f172a; }
+ .ctx-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; padding-right: 20px; }
.ctx-coords { color: #94a3b8; font-size: 0.72rem; margin-bottom: 8px; }
.ctx-id { color: #8b5cf6; font-size: 0.7rem; font-weight: 600; margin-bottom: 6px; }
.ctx-note { color: #64748b; font-size: 0.75rem; margin-bottom: 8px; }
diff --git a/src/lib/components/MapView.svelte b/src/lib/components/MapView.svelte
index f5c9943..a199cc9 100644
--- a/src/lib/components/MapView.svelte
+++ b/src/lib/components/MapView.svelte
@@ -632,6 +632,7 @@
savedPoints={savedPointsList}
destination={destination}
onDestinationChange={(d) => (destination = d)}
+ onClose={() => (showDirections = false)}
progress={routeProgress}
computing={computingRoute}
{runRoute}
@@ -645,7 +646,10 @@
onclick={() => (showPrefs = false)}
onkeydown={(e) => { if (e.key === 'Escape' || e.key === 'Enter' || e.key === ' ') { e.preventDefault(); showPrefs = false; } }}>
e.stopPropagation()}>
-
Preferences
+
+
Preferences
+
+
Unit system