将内容保留在模态框中

发布于 2025-01-25 05:34:55 字数 323 浏览 2 评论 0原文

我正在尝试使用材料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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笔落惊风雨 2025-02-01 05:34:55

模式不适合日历的大小,因为您将日历容器的宽度设置为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 in dayview.js file and modal will take as much space as it needs to fit the content of your calendar

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文