DEV Community


Unable to fix Antd Modal Height

saiavinashiitr profile image Sai Avinash Duddupudi ・1 min read

I am trying to set Antd Modal height to 1000px by default but its not getting applied. Please suggest where I might be doing wrong. Below is my code for the Modal.

<Modal style={{ height: "1000px" }} className="pm" width={600} title="Select" visible={isModalVisible3} footer={null} onCancel={() =>setIsModalVisible3(false)}>
    <span>Sample Text</span>
Enter fullscreen mode Exit fullscreen mode

I even added .pm{height: 1000px;} in my base.css file but no luck

Please suggest a workaround.

Discussion (0)

Editor guide