Fix svelte 4 components to fit into requirements

This commit is contained in:
kwaroran
2024-10-22 22:06:20 +09:00
parent 00b4195ca0
commit 8e1d014f6e
9 changed files with 41 additions and 27 deletions

View File

@@ -30,7 +30,7 @@
<span>{lore.name}</span>
{/if}
<div class="flex-grow flex justify-end">
<button class="text-textcolor2 hover:text-green-500 cursor-pointer" on:click={async (e) => {
<div class="text-textcolor2 hover:text-green-500 cursor-pointer" on:click={async (e) => {
e.stopPropagation()
if($DataBase.loreBook.length === 1){
return
@@ -44,7 +44,7 @@
}
}}>
<TrashIcon size={18}/>
</button>
</div>
</div>
</button>
{/each}