Aditya Medhane Aditya Medhane nsarrazin HF Staff commited on
Commit
3076857
·
unverified ·
1 Parent(s): eabf2bf

fix(ui): swap delete confirmation buttons for better UX (#1546) (#1547)

Browse files

Co-authored-by: Aditya Medhane <[email protected]>
Co-authored-by: Nathan Sarrazin <[email protected]>

src/lib/components/NavConversationItem.svelte CHANGED
@@ -52,6 +52,14 @@
52
  </div>
53
 
54
  {#if confirmDelete}
 
 
 
 
 
 
 
 
55
  <button
56
  type="button"
57
  class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
@@ -63,14 +71,6 @@
63
  >
64
  <CarbonCheckmark class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
65
  </button>
66
- <button
67
- type="button"
68
- class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
69
- title="Cancel delete action"
70
- on:click|preventDefault={() => (confirmDelete = false)}
71
- >
72
- <CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
73
- </button>
74
  {:else}
75
  <button
76
  type="button"
 
52
  </div>
53
 
54
  {#if confirmDelete}
55
+ <button
56
+ type="button"
57
+ class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
58
+ title="Cancel delete action"
59
+ on:click|preventDefault={() => (confirmDelete = false)}
60
+ >
61
+ <CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
62
+ </button>
63
  <button
64
  type="button"
65
  class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
 
71
  >
72
  <CarbonCheckmark class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
73
  </button>
 
 
 
 
 
 
 
 
74
  {:else}
75
  <button
76
  type="button"