Skip to content

Commit

Permalink
fix(ui): swap delete confirmation buttons for better UX (#1546) (#1547)
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya Medhane <adityasmac@Adityas-MacBook-Air-3.local>
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 938e1d8 commit 20a0887
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/components/NavConversationItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
</div>

{#if confirmDelete}
<button
type="button"
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
title="Cancel delete action"
on:click|preventDefault={() => (confirmDelete = false)}
>
<CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
</button>
<button
type="button"
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
Expand All @@ -63,14 +71,6 @@
>
<CarbonCheckmark class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
</button>
<button
type="button"
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
title="Cancel delete action"
on:click|preventDefault={() => (confirmDelete = false)}
>
<CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
</button>
{:else}
<button
type="button"
Expand Down

0 comments on commit 20a0887

Please sign in to comment.