将内容保留在模态框中
我正在尝试使用材料UI模式在您的应用程序中创建一个月的日历弹出窗口,您可以在其中选择这一天。我遇到了模式不适合日历大小的问题。我该如何解决? (通过单击两个箭头之间的右上日日期打开日历模式)谢谢!下面的所有代码。
https://codesandbox.io/s/unruffled-pine -Owsxg1?file =/src/index.js
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
模式不适合日历的大小,因为您将日历容器的宽度设置为400。用
width删除行:400,
从dayview.js
中的样式对象删除。文件和模态将占用尽可能多的空间来满足日历的内容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 indayview.js
file and modal will take as much space as it needs to fit the content of your calendar