Skip to content

Commit

Permalink
Fix button text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Oct 9, 2024
1 parent f376cea commit 8aaf51b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ export const Button: FC<Props> = ({
disabled={disabled || pending}
type={type}
>
{children}
{pending && <SpinnerIcon width={24} height={24} spinning={true} />}
<label>
{children}
{pending && <SpinnerIcon width={24} height={24} spinning={true} />}
</label>
</button>
</>
)

0 comments on commit 8aaf51b

Please sign in to comment.