nsarrazin HF Staff commited on
Commit
2a28d2b
·
unverified ·
1 Parent(s): b560b3c

fix(tools): only center actions on mobile

Browse files
src/routes/tools/[toolId]/+page.svelte CHANGED
@@ -93,7 +93,7 @@
93
  {/if}
94
 
95
  <div
96
- class="flex flex-wrap items-center justify-center gap-x-4 gap-y-2 whitespace-nowrap text-sm text-gray-500 hover:*:text-gray-800"
97
  >
98
  <div class="w-full sm:w-auto">
99
  <button
@@ -163,7 +163,7 @@
163
  >
164
  {/if}
165
  {/if}
166
- {#if data?.user?.isAdmin}
167
  <form method="POST" action="?/delete" use:enhance>
168
  <button type="submit" class="flex items-center text-red-600 underline">
169
  <CarbonTrash class="mr-1.5 inline text-xs" />Delete</button
 
93
  {/if}
94
 
95
  <div
96
+ class="flex flex-wrap items-center gap-x-4 gap-y-2 whitespace-nowrap text-sm text-gray-500 hover:*:text-gray-800 max-sm:justify-center"
97
  >
98
  <div class="w-full sm:w-auto">
99
  <button
 
163
  >
164
  {/if}
165
  {/if}
166
+ {#if !data?.user?.isAdmin}
167
  <form method="POST" action="?/delete" use:enhance>
168
  <button type="submit" class="flex items-center text-red-600 underline">
169
  <CarbonTrash class="mr-1.5 inline text-xs" />Delete</button