Handle white spaces in error messages
This commit is contained in:
@@ -54,10 +54,10 @@ export function EmptyView({ message, messageExtra, retry, noFaces, sx }: EmptyVi
|
|||||||
{errorFace}
|
{errorFace}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
<Typography variant="h5" sx={{ pointerEvents: 'all' }}>
|
<Typography variant="h5" sx={{ wordBreak: 'break-word', whiteSpace: 'pre-line', pointerEvents: 'all' }}>
|
||||||
{message}
|
{message}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body1" sx={{ wordBreak: 'break-word', pointerEvents: 'all' }}>
|
<Typography variant="body1" sx={{ wordBreak: 'break-word', whiteSpace: 'pre-line', pointerEvents: 'all' }}>
|
||||||
{messageExtra}
|
{messageExtra}
|
||||||
</Typography>
|
</Typography>
|
||||||
{retry && (
|
{retry && (
|
||||||
|
|||||||
Reference in New Issue
Block a user