Skip to content

Commit 0d6f293

Browse files
authored
FE: Topic analysis: Updated style for percentage of completion (#4123)
1 parent 8f2a29d commit 0d6f293

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

kafka-ui-react-app/src/components/Topics/Topic/Statistics/Metrics.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ const Metrics: React.FC = () => {
4444
if (data.progress) {
4545
return (
4646
<S.ProgressContainer>
47+
<S.ProgressPct>
48+
{Math.floor(data.progress.completenessPercent || 0)}%
49+
</S.ProgressPct>
4750
<S.ProgressBarWrapper>
4851
<ProgressBar completed={data.progress.completenessPercent || 0} />
49-
<span> {Math.floor(data.progress.completenessPercent || 0)} %</span>
5052
</S.ProgressBarWrapper>
5153
<ActionButton
5254
onClick={async () => {

kafka-ui-react-app/src/components/Topics/Topic/Statistics/Statistics.styles.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,10 @@ export const ProgressBarWrapper = styled.div`
4242
align-items: center;
4343
width: 280px;
4444
`;
45+
46+
export const ProgressPct = styled.span`
47+
font-size: 15px;
48+
font-weight: bold;
49+
line-height: 1.5;
50+
color: ${({ theme }) => theme.statictics.progressPctColor};
51+
`;

kafka-ui-react-app/src/theme/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ const baseTheme = {
291291
},
292292
statictics: {
293293
createdAtColor: Colors.neutral[50],
294+
progressPctColor: Colors.neutral[100],
294295
},
295296
progressBar: {
296297
backgroundColor: Colors.neutral[3],

0 commit comments

Comments
 (0)