From 1facf50621fac379e5587c59d15a2539270b412e Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sun, 7 Dec 2025 12:10:56 +0100 Subject: [PATCH] show selected icon in waypoint tool --- .../toolbar/tools/waypoint/Waypoint.svelte | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/website/src/lib/components/toolbar/tools/waypoint/Waypoint.svelte b/website/src/lib/components/toolbar/tools/waypoint/Waypoint.svelte index 90971466d..4c8fb94f7 100644 --- a/website/src/lib/components/toolbar/tools/waypoint/Waypoint.svelte +++ b/website/src/lib/components/toolbar/tools/waypoint/Waypoint.svelte @@ -174,19 +174,27 @@ bind:value={description} id="description" disabled={!canCreate && !$selectedWaypoint} + class="min-h-8 h-8 py-1 px-3 text-sm" /> - {#if symbolKey} - {i18n._(`gpx.symbol.${symbolKey}`)} - {:else} - {sym} - {/if} + + {#if symbolKey} + {#if symbols[symbolKey].icon} + {@const Component = symbols[symbolKey].icon} + + {/if} + {i18n._(`gpx.symbol.${symbolKey}`)} + {:else} + {sym} + {/if} + {#each sortedSymbols as [key, symbol]}