Skip to content

Commit

Permalink
feat(ui-commons): update style of SnackErrorMessage component
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Sep 10, 2024
1 parent 0b2333b commit 77193e9
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions webapp/src/components/common/SnackErrorMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,29 @@ const SnackErrorMessage = forwardRef<HTMLDivElement, Props>(
</Box>
</CardActions>
<Collapse in={expanded} timeout="auto" unmountOnExit>
<Paper sx={{ p: 2 }}>
<Paper
sx={{
p: 2,
whiteSpace: "pre-wrap",
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
maxHeight: "200px",
overflow: "auto",
}}
>
{axios.isAxiosError(details) ? (
<Grid
container
spacing={1}
sx={{ width: "100%", height: "100%", mt: 1 }}
>
<Grid container spacing={1} sx={{ width: 1, height: 1, mt: 1 }}>
<Grid item xs={6}>
<Label>Status :</Label>
<Label>Status: </Label>
<Typography>{details.response?.status}</Typography>
</Grid>
<Grid item xs={6}>
<Label>Exception : </Label>
<Label>Exception: </Label>
<Typography>{details.response?.data.exception}</Typography>
</Grid>
<Grid item xs={6}>
<Label>Description : </Label>
<Typography sx={{ whiteSpace: "pre-wrap" }}>
<Label>Description: </Label>
<Typography>
{details.response?.data.description}
</Typography>
</Grid>
Expand Down

0 comments on commit 77193e9

Please sign in to comment.