diff options
| author | Adam Soltys <[email protected]> | 2024-11-07 16:43:31 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-07 16:43:31 -0800 |
| commit | 1f4f3f55238b9fdb6885e42cda386ef6130555be (patch) | |
| tree | 6ed599d366ff0389d2e394d4ca8aefa58e0e6432 /src/components/Items.svelte | |
| parent | 030f3e76bec7bf4379fc48ca0a10c11efc90cd36 (diff) | |
| download | coinos-ui-1f4f3f55238b9fdb6885e42cda386ef6130555be.tar.gz coinos-ui-1f4f3f55238b9fdb6885e42cda386ef6130555be.zip | |
svelte 5 fixes
Diffstat (limited to 'src/components/Items.svelte')
| -rw-r--r-- | src/components/Items.svelte | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/components/Items.svelte b/src/components/Items.svelte index 2916721d..db5dedc1 100644 --- a/src/components/Items.svelte +++ b/src/components/Items.svelte @@ -135,23 +135,20 @@ {/if} {#if user?.username === subject.username} <div class="flex gap-2 justify-center absolute top-2 right-2"> - <button type="button" on:click|stopPropagation={() => {}}> - <a href={`/items/${i.id}`}> - <button - class="bg-black rounded-full w-12 h-12 bg-opacity-40 hover:bg-opacity-100" - > - <Icon icon="edit" style="w-8 mx-auto invert" /> - </button> - </a> - </button> + <a href={`/items/${i.id}`}> + <button + class="bg-black rounded-full w-12 h-12 bg-opacity-40 hover:bg-opacity-100" + > + <Icon icon="edit" style="w-8 mx-auto invert" /> + </button> + </a> <button class="bg-black rounded-full w-12 h-12 bg-opacity-40 hover:bg-opacity-100" on:click|stopPropagation={() => del(i)} > <Icon icon="trash" style="w-8 mx-auto invert" /> </button> - <button - type="button" + <div on:click|stopPropagation={() => {}} class="sm:hidden" on:mousedown={startDrag} @@ -165,7 +162,7 @@ <Icon icon="move" style="w-8 mx-auto invert" /> </button> </a> - </button> + </div> </div> {/if} </div> |
