fix: delete chat shortcut

This commit is contained in:
Timothy J. Baek 2024-05-01 16:08:06 -07:00
parent d5bcae6182
commit e60c87d750

View file

@ -619,6 +619,27 @@
<ArchiveBox /> <ArchiveBox />
</button> </button>
</Tooltip> </Tooltip>
{#if chat.id === $chatId}
<button
id="delete-chat-button"
class="hidden"
on:click={() => {
chatDeleteId = chat.id;
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
fill="currentColor"
class="w-4 h-4"
>
<path
d="M2 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM12.5 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"
/>
</svg>
</button>
{/if}
</div> </div>
{/if} {/if}
</div> </div>