Fix: fix compass widget

This commit is contained in:
Pieter Vander Vennet 2025-08-05 22:02:44 +02:00
parent 22626b5826
commit 7f45d7487d
2 changed files with 2 additions and 2 deletions

View file

@ -763,7 +763,7 @@
},
{
"if": "mapcomplete-fixate-north=yes",
"icon": "./assets/svg/compass.svg",
"icon": "./assets/svg/north_arrow.svg",
"then": {
"en": "Always keep north pointing up",
"ca": "Mantingueu sempre el nord apuntant cap amunt",

View file

@ -32,7 +32,7 @@ function clicked(e: Event) {
}
</script>
{#if $allowRotation || !$gotNonZero}
{#if $allowRotation || $gotNonZero}
<button style="z-index: -1" class={"relative as-link pointer-events-auto "+size} on:click={(e) => clicked(e)}>
{#if $allowRotation && !$compassLoaded && !$gotNonZero}
<div class={"border-2 rounded-full border-gray-500 border-dotted "+wrapperClass}