Android: small fixes

This commit is contained in:
Pieter Vander Vennet 2025-01-22 02:26:02 +01:00
parent 7ebccfafd0
commit a71994859e
3 changed files with 18 additions and 17 deletions

View file

@ -64,20 +64,18 @@
use:set_placeholder={placeholder}
use:ariaLabel={placeholder}
/>
{#if !isAndroid}
<!-- Show a 'clear field' icon in the searchbar. The android-build already provides this for us, hence the outer if -->
{#if $value.length > 0}
<Backspace
on:click={(e) => {
<!-- Show a 'clear field' icon in the searchbar. The android-build already provides this for us, hence the outer if -->
{#if !$isAndroid $value.length > 0}
<Backspace
on:click={(e) => {
value.set("")
e.preventDefault()
}}
color="var(--button-background)"
class="mr-3 h-6 w-6 cursor-pointer"
/>
{:else}
<div class="mr-3 w-6" />
{/if}
color="var(--button-background)"
class="mr-3 h-6 w-6 cursor-pointer"
/>
{:else}
<div class="mr-3 w-6" />
{/if}
</label>
</form>