Refactor table rendering in BotSettings, ModuleMenu, and CharConfig components

This commit is contained in:
kwaroran
2024-10-22 22:13:52 +09:00
parent e8a38c6570
commit e434c7ab96
2 changed files with 7 additions and 4 deletions

View File

@@ -551,9 +551,12 @@
<td class="font-medium truncate w-1/2">
<TextInput marginBottom size='lg' bind:value={currentChar.data.emotionImages[i][0]} />
</td>
<button class="font-medium cursor-pointer hover:text-green-500" on:click={() => {
rmCharEmotion($selectedCharID,i)
}}><TrashIcon /></button>
<td>
<button class="font-medium cursor-pointer hover:text-green-500" on:click={() => {
rmCharEmotion($selectedCharID,i)
}}><TrashIcon /></button>
</td>
</tr>
{/each}
{/if}