File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ const TaskPage = () => {
124
124
< WorkspaceBuildProgress
125
125
workspace = { task . workspace }
126
126
transitionStats = { transition }
127
+ stack = { true }
127
128
/>
128
129
</ div >
129
130
</ div >
Original file line number Diff line number Diff line change @@ -62,11 +62,14 @@ const estimateFinish = (
62
62
interface WorkspaceBuildProgressProps {
63
63
workspace : Workspace ;
64
64
transitionStats : TransitionStats ;
65
+ // stack indicates to stack the text vertically, otherwise put it on one line.
66
+ stack ?: boolean ;
65
67
}
66
68
67
69
export const WorkspaceBuildProgress : FC < WorkspaceBuildProgressProps > = ( {
68
70
workspace,
69
71
transitionStats,
72
+ stack,
70
73
} ) => {
71
74
const job = workspace . latest_build . job ;
72
75
const [ progressValue , setProgressValue ] = useState < number | undefined > ( 0 ) ;
@@ -131,7 +134,7 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
131
134
// is not indicative of true progress.
132
135
classes = { { bar : classNames . bar } }
133
136
/>
134
- < div css = { styles . barHelpers } >
137
+ < div className = { stack ? "leading-tight mt-1" : "flex mt-1 justify-between" } >
135
138
< div css = { styles . label } >
136
139
{ capitalize ( workspace . latest_build . status ) } workspace...
137
140
</ div >
@@ -154,11 +157,6 @@ const styles = {
154
157
paddingLeft : 2 ,
155
158
paddingRight : 2 ,
156
159
} ,
157
- barHelpers : {
158
- display : "flex" ,
159
- justifyContent : "space-between" ,
160
- marginTop : 4 ,
161
- } ,
162
160
label : ( theme ) => ( {
163
161
fontSize : 12 ,
164
162
display : "block" ,
You can’t perform that action at this time.
0 commit comments