fixed layout, null checks

This commit is contained in:
Tim Chamberlain
2023-05-18 19:36:16 -05:00
parent ecbd8ed9f6
commit 96bc57f5f9
2 changed files with 20 additions and 6 deletions

View File

@ -384,7 +384,7 @@ function Widget(props: React.PropsWithChildren<Props>): JSX.Element
</Box>
{
errorLoading ? (
<Box p={3} sx={{display: "flex", justifyContent: "center", alignItems: "flex-start"}}>
<Box pb={3} sx={{display: "flex", justifyContent: "center", alignItems: "flex-start"}}>
<Icon color="error">error</Icon>
<Typography sx={{paddingLeft: "4px", textTransform: "revert"}} variant="button">An error occurred loading widget content.</Typography>
</Box>