Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Keeping content inside modal box

I’m attempting to create a month calendar pop-up inside my app using a material UI Modal where you can select the day. I’m running into an issue where the modal does not fit the size of my calendar. how can I fix this? (Open calendar modal by clicking the date in top right between the two arrows) thank you! all code below.

https://codesandbox.io/s/unruffled-pine-owsxg1?file=/src/index.js

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Modal doesn’t fit the size of calendar because you set the width of calendar container to 400. Delete the row with width: 400, from your style object in dayview.js file and modal will take as much space as it needs to fit the content of your calendar

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading