Skip to content

Commit

Permalink
Merge pull request #650 from sudhanshutech/style/modal
Browse files Browse the repository at this point in the history
Fix style using `maxWidth` prop for modals
  • Loading branch information
sudhanshutech authored Jun 26, 2024
2 parents d16e206 + 759897f commit 7424585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/custom/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ const CloseBtn = styled(IconButton)`
const StyledDialog = styled(Dialog)`
&& {
.MuiDialog-paper {
width: auto;
max-width: 100%;
border-radius: 0.5rem;
}
}
Expand Down Expand Up @@ -128,10 +126,13 @@ export const Modal: React.FC<ModalProps> = ({
headerIcon,
reactNode,
children,
maxWidth = 'xs',
...props
}) => {
return (
<StyledDialog
fullWidth={true}
maxWidth={maxWidth}
open={open}
onClose={closeModal}
aria-labelledby="alert-dialog-slide-title"
Expand Down

0 comments on commit 7424585

Please sign in to comment.