Skip to content

Commit 42e4127

Browse files
committed
refactor: improve progress text position
1 parent 1990285 commit 42e4127

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/ui/src/components/JobCard/Progress/Progress.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
.progress text {
24-
font-size: 1.5rem;
24+
font-size: 1.3rem;
2525
font-family: inherit;
2626
font-weight: 300;
2727
fill: var(--card-text-secondary-color);

packages/ui/src/components/JobCard/Progress/Progress.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export const Progress = ({ progress, status, className, strokeWidth = 6 }: Progr
4141
transform="rotate(-90)"
4242
{...commonProps}
4343
/>
44-
<text textAnchor="middle" dominantBaseline="middle" x="50%" y="50%">
45-
{Math.round(percentage)}%
44+
<text x="50%" y="50%" textAnchor="middle" dominantBaseline="central">
45+
<tspan dominantBaseline="central">{`${Math.round(percentage)}%`}</tspan>
4646
</text>
4747
</svg>
4848
);

0 commit comments

Comments
 (0)