Skip to content

Commit

Permalink
fix: add word wrap in error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeLuise committed Sep 10, 2023
1 parent 5cee5fa commit 203897f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/ErrorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export default function ErrorDialog(props: {
}) {
return <div>
<BootstrapDialog
onClose={() => props.close()}
onClose={props.close}
open={props.open}
>
<DialogTitle sx={{ m: 0, p: 2 }} >
Error
</DialogTitle>
<IconButton
aria-label="close"
onClick={() => props.close()}
onClick={props.close}
sx={{
position: 'absolute',
right: 8,
Expand All @@ -36,15 +36,17 @@ export default function ErrorDialog(props: {
>
<CloseIcon />
</IconButton>
<DialogContent dividers>
<DialogContent dividers sx={{
overflowWrap: "break-word",
}}>
<Typography gutterBottom>
{props.text}
</Typography>
</DialogContent>
<DialogActions>
<Button
autoFocus
onClick={() => props.close()}
onClick={props.close}
fullWidth
>
Ok
Expand Down

0 comments on commit 203897f

Please sign in to comment.