Commit 30ac66cc authored by chechunchi's avatar chechunchi

optimize neos-modal-wrap

parent 65a1e8a5
Pipeline #22429 failed with stages
in 15 minutes and 59 seconds
...@@ -16,12 +16,12 @@ export const NeosModal: React.FC<Props> = (props) => { ...@@ -16,12 +16,12 @@ export const NeosModal: React.FC<Props> = (props) => {
<Modal <Modal
className={classNames("neos-modal", { "neos-modal-mini": mini })} className={classNames("neos-modal", { "neos-modal-mini": mini })}
centered centered
maskClosable={false} maskClosable={true}
onCancel={() => setMini(!mini)} onCancel={() => setMini(!mini)}
closeIcon={mini ? <UpOutlined /> : <MinusOutlined />} closeIcon={mini ? <UpOutlined /> : <MinusOutlined />}
bodyStyle={{ padding: "10px 0" }} bodyStyle={{ padding: "10px 0" }}
mask={!mini} mask={!mini}
wrapClassName="neos-modal-wrap" wrapClassName={classNames({ "neos-modal-wrap": mini })}
closable={canBeMinimized} closable={canBeMinimized}
{...props} {...props}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment