chore: better position for job stage loader (#3170)

This commit is contained in:
Mayursinh Sarvaiya
2020-10-30 12:06:55 +05:30
committed by GitHub
parent 50fb00ac9c
commit 1ae2a687f0
@@ -73,6 +73,18 @@ const useStyles = makeStyles(theme => ({
boxShadow: `inset 4px 0px 0px ${theme.palette.success.main}`,
},
},
jobStatusTitle: {
display: 'flex',
width: '100%',
alignItems: 'center',
flexDirection: 'row',
justifyContent: 'space-between',
[theme.breakpoints.down('xs')]: {
flexDirection: 'column',
alignItems: 'flex-start',
justifyContent: 'flex-start',
},
},
}));
type Props = {
@@ -118,7 +130,7 @@ export const JobStage = ({ endedAt, startedAt, name, log, status }: Props) => {
className: classes.button,
}}
>
<Typography variant="button">
<Typography variant="button" className={classes.jobStatusTitle}>
{name} {timeElapsed && `(${timeElapsed})`}{' '}
{startedAt && !endedAt && <CircularProgress size="1em" />}
</Typography>