forked from MapComplete/MapComplete
UX: slow down spin speed of search geolocation button
This commit is contained in:
parent
47bf1195bc
commit
08e408e19d
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@
|
||||||
{:else if $geopermission === "requested"}
|
{:else if $geopermission === "requested"}
|
||||||
<button class="flex w-full items-center gap-x-2 disabled" on:click={jumpToCurrentLocation}>
|
<button class="flex w-full items-center gap-x-2 disabled" on:click={jumpToCurrentLocation}>
|
||||||
<!-- Even though disabled, when clicking we request the location again in case the contributor dismissed the location popup -->
|
<!-- Even though disabled, when clicking we request the location again in case the contributor dismissed the location popup -->
|
||||||
<ToSvelte construct={Svg.crosshair_svg().SetClass("w-8 h-8").SetClass("animate-spin")} />
|
<ToSvelte construct={Svg.crosshair_svg().SetClass("w-8 h-8").SetStyle("animation: 3s linear 0s infinite normal none running spin;")} />
|
||||||
<Tr t={Translations.t.general.waitingForGeopermission} />
|
<Tr t={Translations.t.general.waitingForGeopermission} />
|
||||||
</button>
|
</button>
|
||||||
{:else if $geopermission === "denied"}
|
{:else if $geopermission === "denied"}
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
</button>
|
</button>
|
||||||
{:else }
|
{:else }
|
||||||
<button class="flex w-full items-center gap-x-2 disabled">
|
<button class="flex w-full items-center gap-x-2 disabled">
|
||||||
<ToSvelte construct={Svg.crosshair_svg().SetClass("w-8 h-8").SetClass("animate-spin")} />
|
<ToSvelte construct={Svg.crosshair_svg().SetClass("w-8 h-8").SetStyle("animation: 3s linear 0s infinite normal none running spin;")} />
|
||||||
<Tr t={Translations.t.general.waitingForLocation} />
|
<Tr t={Translations.t.general.waitingForLocation} />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue