From c53034d305355cc997957a34bbf1619a62238ac2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 1 Mar 2025 03:45:51 +0100 Subject: [PATCH] UX: center "data is loading" when adding a new point --- src/UI/Popup/AddNewPoint/AddNewPoint.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte index 7a97cad9ae..8d7e36cd9a 100644 --- a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte +++ b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte @@ -78,7 +78,7 @@ const isLoading = state.dataIsLoading let preciseCoordinate: UIEventSource<{ lon: number; lat: number }> = new UIEventSource(undefined) - let snappedToObject: UIEventSource = new UIEventSource(undefined) + let snappedToObject: UIEventSource = new UIEventSource(undefined) // Small helper variable: if the map is tapped, we should let the 'Next'-button grab some attention as users have to click _that_ to continue, not the map let preciseInputIsTapped = false @@ -172,11 +172,13 @@ {:else if $isLoading} +
+
{:else if selectedPreset === undefined} t.presetInfo.Subs({ tags })} - {state} tags={new And(selectedPreset.preset.tags)} />