1
- import { Button , styled } from "@mui/material" ;
1
+ import { Button , Stack , styled , Typography } from "@mui/material" ;
2
2
import { TestInfo } from "components/additionalTestInfo/TestInfo" ;
3
3
import styles from "components/commit/commit.module.css" ;
4
4
import LogViewer , { SearchLogViewer } from "components/common/log/LogViewer" ;
@@ -182,16 +182,22 @@ export default function WorkflowBox({
182
182
className = { workflowClass }
183
183
style = { wide ? { gridColumn : "1 / -1" } : { } }
184
184
>
185
- < h3 > { workflowName } </ h3 >
186
- < div >
187
- < div
188
- // Similar styling to an h4
189
- style = { { float : "left" , marginBottom : "1.33em" , fontWeight : "bold" } }
190
- >
191
- Job Status
192
- </ div >
193
- < div style = { { float : "right" } } >
194
- < div style = { { margin : ".5em 0em" } } >
185
+ < Stack direction = "row" spacing = { 1 } justifyContent = { "space-between" } >
186
+ < Stack direction = "column" spacing = { 1 } >
187
+ < Typography
188
+ variant = "h6"
189
+ fontWeight = "bold"
190
+ paddingTop = { 2 }
191
+ paddingBottom = { 2 }
192
+ >
193
+ { workflowName }
194
+ </ Typography >
195
+ < Typography fontWeight = "bold" paddingBottom = { 2 } >
196
+ Job Status
197
+ </ Typography >
198
+ </ Stack >
199
+ < Stack direction = "column" spacing = { 1 } paddingTop = { 6 } >
200
+ < div >
195
201
{ repoFullName == "pytorch/pytorch" && (
196
202
< button
197
203
onClick = { ( ) => {
@@ -206,7 +212,6 @@ export default function WorkflowBox({
206
212
) }
207
213
</ div >
208
214
< form
209
- style = { { float : "right" , paddingBottom : ".5em" } }
210
215
onSubmit = { ( e : React . FormEvent < HTMLFormElement > ) => {
211
216
e . preventDefault ( ) ;
212
217
// @ts -ignore
@@ -221,21 +226,9 @@ export default function WorkflowBox({
221
226
> </ input >
222
227
< input type = "submit" value = "Search" > </ input >
223
228
</ form >
224
- < div
225
- style = { {
226
- // Ensures elements after this div are actually below it (due to float)
227
- clear : "both" ,
228
- } }
229
- > </ div >
230
- { searchString && < div > { searchRes . info } </ div > }
231
- </ div >
232
- < div
233
- style = { {
234
- // Ensures elements after this div are actually below it (due to float)
235
- clear : "both" ,
236
- } }
237
- > </ div >
238
- </ div >
229
+ < div > { searchRes . info } </ div >
230
+ </ Stack >
231
+ </ Stack >
239
232
{ wide && (
240
233
< TestInfo workflowId = { workflowId ! } runAttempt = { "1" } jobs = { jobs } />
241
234
) }
0 commit comments