Skip to content

Commit

Permalink
Fix ant-design#47967 modal rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mithun522 committed Mar 28, 2024
1 parent bc2c1e1 commit 5f32f8e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/modal/Modal.tsx
@@ -1,7 +1,7 @@
import * as React from 'react';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import classNames from 'classnames';
import Dialog from 'rc-dialog';
import * as React from 'react';

import useClosable from '../_util/hooks/useClosable';
import { useZIndex } from '../_util/hooks/useZIndex';
Expand Down Expand Up @@ -144,6 +144,13 @@ const Modal: React.FC<ModalProps> = (props) => {
maskTransitionName={getTransitionName(rootPrefixCls, 'fade', props.maskTransitionName)}
className={classNames(hashId, className, modal?.className)}
style={{ ...modal?.style, ...style }}
bodyStyle={{
maxHeight: 'calc(70vh - 60px)',
overflowY: 'auto',
paddingRight: 16,
scrollbarWidth: 'none',
msOverflowStyle: 'none',
}}
classNames={{
...modal?.classNames,
...modalClassNames,
Expand Down

0 comments on commit 5f32f8e

Please sign in to comment.