Topic analysis improvement: Updated style for percentage of completion.
This commit is contained in:
parent
2a61b97fab
commit
23034dacc9
3 changed files with 9 additions and 1 deletions
|
@ -44,9 +44,9 @@ const Metrics: React.FC = () => {
|
|||
if (data.progress) {
|
||||
return (
|
||||
<S.ProgressContainer>
|
||||
<S.ProgressPct> {Math.floor(data.progress.completenessPercent || 0)}%</S.ProgressPct>
|
||||
<S.ProgressBarWrapper>
|
||||
<ProgressBar completed={data.progress.completenessPercent || 0} />
|
||||
<span> {Math.floor(data.progress.completenessPercent || 0)} %</span>
|
||||
</S.ProgressBarWrapper>
|
||||
<ActionButton
|
||||
onClick={async () => {
|
||||
|
|
|
@ -42,3 +42,10 @@ export const ProgressBarWrapper = styled.div`
|
|||
align-items: center;
|
||||
width: 280px;
|
||||
`;
|
||||
|
||||
export const ProgressPct = styled.span`
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
line-height: 1.5;
|
||||
color: ${({ theme }) => theme.statictics.progressPctColor};
|
||||
`;
|
||||
|
|
|
@ -291,6 +291,7 @@ const baseTheme = {
|
|||
},
|
||||
statictics: {
|
||||
createdAtColor: Colors.neutral[50],
|
||||
progressPctColor: Colors.neutral[100],
|
||||
},
|
||||
progressBar: {
|
||||
backgroundColor: Colors.neutral[3],
|
||||
|
|
Loading…
Add table
Reference in a new issue