fix: arrange mobile layout in ExecutionRow

This commit is contained in:
Ali BARIN
2022-08-09 19:15:19 +02:00
parent a4abd7e1cd
commit b7c4a63d2b
2 changed files with 17 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ import type { IExecution } from '@automatisch/types';
import * as URLS from 'config/urls';
import useFormatMessage from 'hooks/useFormatMessage';
import FlowAppIcons from 'components/FlowAppIcons';
import { Apps, CardContent, Typography } from './style';
import { Apps, CardContent, ArrowContainer, Title, Typography } from './style';
type ExecutionRowProps = {
execution: IExecution;
@@ -34,7 +34,7 @@ export default function ExecutionRow(props: ExecutionRowProps): React.ReactEleme
<FlowAppIcons steps={flow.steps} />
</Apps>
<Stack
<Title
justifyContent="center"
alignItems="flex-start"
spacing={1}
@@ -46,11 +46,11 @@ export default function ExecutionRow(props: ExecutionRowProps): React.ReactEleme
<Typography variant="caption" noWrap>
{formatMessage('execution.executedAt', { datetime: relativeCreatedAt })}
</Typography>
</Stack>
</Title>
<Box>
<ArrowContainer>
<ArrowForwardIosIcon sx={{ color: (theme) => theme.palette.primary.main }} />
</Box>
</ArrowContainer>
</CardContent>
</CardActionArea>
</Card>