Skip to content

Commit 930138f

Browse files
committed
fix(tools): only center actions on mobile
1 parent bb38bf5 commit 930138f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/tools/[toolId]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
{/if}
9494

9595
<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"
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"
9797
>
9898
<div class="w-full sm:w-auto">
9999
<button
@@ -163,7 +163,7 @@
163163
>
164164
{/if}
165165
{/if}
166-
{#if data?.user?.isAdmin}
166+
{#if !data?.user?.isAdmin}
167167
<form method="POST" action="?/delete" use:enhance>
168168
<button type="submit" class="flex items-center text-red-600 underline">
169169
<CarbonTrash class="mr-1.5 inline text-xs" />Delete</button

0 commit comments

Comments
 (0)