Skip to content

Commit

Permalink
fix(clerk-js): Added padding to the Spinner component
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Sep 28, 2023
1 parent 8ccd80f commit 7c322e0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/clerk-js/src/ui/elements/ArrowBlockButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,18 @@ export const ArrowBlockButton = (props: ArrowBlockButtonProps) => {
<Flex
as='span'
center
sx={[
theme => ({
flex: `0 0 ${theme.space.$4}`,
}),
theme =>
isLoading && {
padding: theme.space.$0x5,
},
]}
sx={theme => ({ flex: `0 0 ${theme.space.$4}` })}
>
{isLoading ? (
<Spinner
elementDescriptor={spinnerElementDescriptor}
elementId={spinnerElementId}
size={'md'}
sx={theme => [
{
padding: theme.space.$2,
},
]}
/>
) : !isIconElement && leftIcon ? (
<Icon
Expand Down

0 comments on commit 7c322e0

Please sign in to comment.