forked from MapComplete/MapComplete
		
	UX: usersetting visual cleanup, add 'clear caches'-option, version bump
This commit is contained in:
		
							parent
							
								
									7293edf228
								
							
						
					
					
						commit
						97df1dc65b
					
				
					 13 changed files with 108 additions and 27 deletions
				
			
		|  | @ -1,5 +1,6 @@ | |||
| <script lang="ts"> | ||||
|   import { ImmutableStore, Store } from "../../Logic/UIEventSource" | ||||
|   import Icon from "../Map/Icon.svelte" | ||||
| 
 | ||||
|   export let text: Store<string> | ||||
|   export let href: Store<string> | ||||
|  | @ -8,6 +9,7 @@ | |||
|   export let ariaLabel: Store<string> = undefined | ||||
| 
 | ||||
|   export let newTab: Store<boolean> = new ImmutableStore(false) | ||||
|   export let icon: Store<string> = undefined | ||||
| </script> | ||||
| 
 | ||||
| <a | ||||
|  | @ -18,5 +20,8 @@ | |||
|   download={$download} | ||||
|   class={$classnames} | ||||
| > | ||||
|   {#if $icon} | ||||
|     <Icon clss="w-8 h-8" icon={$icon}/> | ||||
|     {/if} | ||||
|   {@html $text} | ||||
| </a> | ||||
|  |  | |||
|  | @ -9,7 +9,6 @@ | |||
| </script> | ||||
| 
 | ||||
| <button | ||||
|   class="as-link" | ||||
|   on:click={() => { | ||||
|     osmConnection.LogOut() | ||||
|   }} | ||||
|  |  | |||
|  | @ -32,12 +32,19 @@ | |||
| </script> | ||||
| 
 | ||||
| {#if isSvelte} | ||||
|   <svelte:component | ||||
|     this={svelteElem?._svelteComponent} | ||||
|     {...svelteElem._props} | ||||
|     class={svelteElem.getClass()} | ||||
|     style={svelteElem.getStyle()} | ||||
|   /> | ||||
|   {#if svelteElem.getClass() || svelteElem.getStyle()} | ||||
|     <svelte:component | ||||
|       this={svelteElem?._svelteComponent} | ||||
|       {...svelteElem._props} | ||||
|       class={svelteElem.getClass()} | ||||
|       style={svelteElem.getStyle()} | ||||
|     /> | ||||
|   {:else} | ||||
|     <svelte:component | ||||
|       this={svelteElem?._svelteComponent} | ||||
|       {...svelteElem._props} | ||||
|     /> | ||||
|   {/if} | ||||
| {:else} | ||||
|   <span bind:this={elem} /> | ||||
| {/if} | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
|   import Locale from "../i18n/Locale" | ||||
|   import LinkToWeblate from "./LinkToWeblate" | ||||
|   import Translate from "../../assets/svg/Translate.svelte" | ||||
|   import { LanguageIcon } from "@babeard/svelte-heroicons/solid" | ||||
| 
 | ||||
|   /** | ||||
|    * Shows a small icon which will open up weblate; a contributor can translate the item for 'context' there | ||||
|  | @ -26,11 +27,11 @@ | |||
|   {:else if $linkToWeblate} | ||||
|     <a | ||||
|       href={LinkToWeblate.hrefToWeblate($language, context)} | ||||
|       class="weblate-link hidden-on-mobile mx-1" | ||||
|       class="weblate-link hidden-on-mobile" | ||||
|       target="_blank" | ||||
|       tabindex="-1" | ||||
|     > | ||||
|       <Translate class="font-gray inline-block" /> | ||||
|       <LanguageIcon class="font-gray"/> | ||||
|     </a> | ||||
|   {/if} | ||||
| {/if} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue