Handle white spaces in error messages

This commit is contained in:
schroda
2025-03-22 03:21:09 +01:00
parent f570b7c9ed
commit 8fac3ce352

View File

@@ -54,10 +54,10 @@ export function EmptyView({ message, messageExtra, retry, noFaces, sx }: EmptyVi
{errorFace}
</Typography>
)}
<Typography variant="h5" sx={{ pointerEvents: 'all' }}>
<Typography variant="h5" sx={{ wordBreak: 'break-word', whiteSpace: 'pre-line', pointerEvents: 'all' }}>
{message}
</Typography>
<Typography variant="body1" sx={{ wordBreak: 'break-word', pointerEvents: 'all' }}>
<Typography variant="body1" sx={{ wordBreak: 'break-word', whiteSpace: 'pre-line', pointerEvents: 'all' }}>
{messageExtra}
</Typography>
{retry && (