Currently, I am in the process of developing a React application that includes a modal with props as a child component. The child component is intended to be rendered inside the modal as the modal body. However, I have encountered an issue where the modal body does not properly fit within the modal itself. Despite spending hours adjusting the CSS, I have yet to find a solution to resolve this problem. Below is the relevant code snippet:
Here is the modal component (focus on the structure of the modal body):
insert modified code here
This is the parent component responsible for calling the modal:
insert modified code here
And the corresponding CSS for the parent component:
insert modified code here
The current output can be viewed here.
If anyone has any suggestions on how to ensure the proper fitting of the body within the modal, your help would be greatly appreciated. Thank you!