working on user-defined states

This commit is contained in:
2025-07-31 20:55:03 +02:00
parent 956085c7d3
commit c57da0a891
6 changed files with 29 additions and 17 deletions

View File

@@ -83,5 +83,5 @@
{#if editable && editing}
<input bind:value={editValue} onkeyup={typed} autofocus />
{:else}
<svelte:element this={type} href="" {onclick} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} class={{editable}} title={t('double_click_to_edit')} >{value}</svelte:element>
<svelte:element this={type} href="#" {onclick} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} class={{editable}} title={t('long_click_to_edit')} >{value}</svelte:element>
{/if}