make more responsive

This commit is contained in:
Samira Mokaram
2020-12-09 17:01:08 +01:00
parent 934c4043b4
commit e804237348
2 changed files with 18 additions and 11 deletions
@@ -22,7 +22,7 @@ export const IncidentsEmptyState = () => {
return (
<Grid container justify="center" direction="column" alignItems="center">
<Grid item xs={12}>
<Typography variant="h4">Nice! No incidents found!</Typography>
<Typography variant="h5">Nice! No incidents found!</Typography>
</Grid>
<Grid item xs={12}>
<img
@@ -25,6 +25,7 @@ import {
IconButton,
Link,
Typography,
Grid,
} from '@material-ui/core';
import { StatusError, StatusWarning } from '@backstage/core';
import { formatDistanceToNowStrict } from 'date-fns';
@@ -76,16 +77,22 @@ export const IncidentListItem = ({ incident }: Props) => {
className: classes.listItemPrimary,
}}
secondary={
<Typography noWrap variant="body2" color="textSecondary">
Created {createdAt} ago and assigned to{' '}
<Link
href={user?.html_url ?? '#'}
target="_blank"
rel="noopener noreferrer"
>
{user?.summary ?? 'nobody'}
</Link>
</Typography>
<Grid container>
<Grid item>
<Typography noWrap variant="body2" color="textSecondary">
Created {createdAt} ago and assigned to{' '}
</Typography>
</Grid>
<Grid item>
<Link
href={user?.html_url ?? '#'}
target="_blank"
rel="noopener noreferrer"
>
{user?.summary ?? 'nobody'}
</Link>
</Grid>
</Grid>
}
/>
<ListItemSecondaryAction>