Skip to content

Commit

Permalink
refactor: improve progress text position
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 22, 2025
1 parent 1990285 commit 42e4127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

.progress text {
font-size: 1.5rem;
font-size: 1.3rem;
font-family: inherit;
font-weight: 300;
fill: var(--card-text-secondary-color);
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/JobCard/Progress/Progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const Progress = ({ progress, status, className, strokeWidth = 6 }: Progr
transform="rotate(-90)"
{...commonProps}
/>
<text textAnchor="middle" dominantBaseline="middle" x="50%" y="50%">
{Math.round(percentage)}%
<text x="50%" y="50%" textAnchor="middle" dominantBaseline="central">
<tspan dominantBaseline="central">{`${Math.round(percentage)}%`}</tspan>
</text>
</svg>
);
Expand Down

0 comments on commit 42e4127

Please sign in to comment.