From c2051a665b053b8e3a82ab6ebfeb0f2653741be9 Mon Sep 17 00:00:00 2001 From: hermes-explorigin Date: Mon, 10 Aug 2026 21:21:12 +0000 Subject: [PATCH] feat(ui): add explicit X close buttons to context dialog, Preferences dialog, and Directions panel --- src/lib/components/DirectionsPanel.svelte | 18 +++++++++++++++--- src/lib/components/LocationDialog.svelte | 9 ++++++++- src/lib/components/MapView.svelte | 14 ++++++++++++-- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/lib/components/DirectionsPanel.svelte b/src/lib/components/DirectionsPanel.svelte index 121f1d8..d64d121 100644 --- a/src/lib/components/DirectionsPanel.svelte +++ b/src/lib/components/DirectionsPanel.svelte @@ -37,6 +37,8 @@ destination: { lat: number; lon: number; label?: string } | null; /** Called whenever the destination should change. */ onDestinationChange: (d: { lat: number; lon: number; label?: string } | null) => void; + /** Called when the user closes the panel (X button). */ + onClose: () => void; } let { @@ -52,7 +54,8 @@ runRoute, savedPoints = [], destination = null, - onDestinationChange + onDestinationChange, + onClose }: Props = $props(); // --- destination --- @@ -231,7 +234,10 @@