File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff 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+
3037const 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+ ` ;
You can’t perform that action at this time.
0 commit comments