Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Dec 10, 2024
1 parent 761bba6 commit 940dbd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ export const ProgressSpinner = ({
</Circle>
{running && (
<Circle size={size} width={width} xmlns={XMLNS} spinner>
<circle strokeDashoffset={Math.PI * (size - 2) * (1 - percentage / 100)} />
<circle strokeDashoffset={Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100)} />
</Circle>
)}
<Circle size={size} width={width} xmlns={XMLNS} progress>
<circle strokeDashoffset={Math.PI * (size - 2) * (1 - percentage / 100)} />
<circle strokeDashoffset={Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100)} />
</Circle>
</Wrapper>
) : (
Expand Down

0 comments on commit 940dbd7

Please sign in to comment.