Skip to content

Commit

Permalink
Add scroll to dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
shaked-hayek committed Jul 12, 2024
1 parent 8b5e204 commit dd623a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/molecules/DialogWithHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const useStyles = makeStyles((theme: Theme) =>
justifyContent: 'space-between',
alignItems: 'center',
},
scroll: {
overflowY: 'scroll'
},
close: {
color: shadowColor,
},
Expand All @@ -46,7 +49,9 @@ const DialogWithHeader: FC<IProps> = ({ onClose, isShowing, title, fullWidth, ch
</IconButton>
</Box>
</DialogTitle>
<DialogContent className={classes.content}>{children}</DialogContent>
<Box className={classes.scroll}>
<DialogContent className={classes.content}>{children}</DialogContent>
</Box>
</Dialog>
);
};
Expand Down

0 comments on commit dd623a6

Please sign in to comment.