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 }) => {
20
20
} ) } %`;
21
21
22
22
return (
23
- < div style = { { flex : 1 , display : "flex" , alignItems : "center" } } >
23
+ < StyledProgressContainer >
24
24
< StyledProgress percent = { value } />
25
- < div style = { { flexGrow : 1 , paddingLeft : 10 } } > { textValue } </ div >
26
- </ div >
25
+ < StyledText > { textValue } </ StyledText >
26
+ </ StyledProgressContainer >
27
27
) ;
28
28
} ;
29
29
30
+ const StyledProgressContainer = styled . div `
31
+ display: flex;
32
+ align-items: center;
33
+ width: 100%;
34
+ min-width: 0;
35
+ ` ;
36
+
30
37
const StyledProgress = styled ( Progress ) `
38
+ flex: 1;
39
+ min-width: 0;
31
40
.ant-progress-outer {
32
41
margin-right: 0px;
33
42
padding-right: 0px;
@@ -36,3 +45,8 @@ const StyledProgress = styled(Progress)`
36
45
display: none;
37
46
}
38
47
` ;
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