Skip to content

Commit

Permalink
Fix main button spinner look
Browse files Browse the repository at this point in the history
  • Loading branch information
oBusk committed Oct 17, 2023
1 parent f31a559 commit 3c6a5ae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/_page/MainForm/MainForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,17 @@ const MainForm = forwardRef<HTMLFormElement, MainFormProps>(
className="relative overflow-hidden"
>
{isLoading ? (
<div className="absolute inset-0 flex items-center justify-center bg-primary">
<div className="absolute inset-0 flex items-center justify-center">
<Loader2 className="animate-spin" />
</div>
) : null}
npm diff! 📦🔃
<span
className={
isLoading ? "invisible" : undefined
}
>
npm diff! 📦🔃
</span>
</Button>
</span>
</TooltipTrigger>
Expand Down

0 comments on commit 3c6a5ae

Please sign in to comment.