Skip to content

Commit ea548f1

Browse files
committed
fix: progressbar
1 parent a6829e7 commit ea548f1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/widgets/base/ProgressBar.tsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,23 @@ export const ProgressBarInput = ({ value }: { value?: number }) => {
2020
})}%`;
2121

2222
return (
23-
<div style={{ flex: 1, display: "flex", alignItems: "center" }}>
23+
<StyledProgressContainer>
2424
<StyledProgress percent={value} />
25-
<div style={{ flexGrow: 1, paddingLeft: 10 }}>{textValue}</div>
26-
</div>
25+
<StyledText>{textValue}</StyledText>
26+
</StyledProgressContainer>
2727
);
2828
};
2929

30+
const StyledProgressContainer = styled.div`
31+
display: flex;
32+
align-items: center;
33+
width: 100%;
34+
min-width: 0;
35+
`;
36+
3037
const StyledProgress = styled(Progress)`
38+
flex: 1;
39+
min-width: 0;
3140
.ant-progress-outer {
3241
margin-right: 0px;
3342
padding-right: 0px;
@@ -36,3 +45,8 @@ const StyledProgress = styled(Progress)`
3645
display: none;
3746
}
3847
`;
48+
49+
const StyledText = styled.div`
50+
padding-left: 10px;
51+
white-space: nowrap;
52+
`;

0 commit comments

Comments
 (0)