I’ve encountered a persistent issue in my project over the past few days. I have a 3D Scene embedded within an HTML modal using Bootstrap 5. For the most part, everything works seamlessly; however, a particular problem has been bothering me. Whenever I zoom in, and the modal scales down to fit within the screen, the 3D Scene fails to scale accordingly. Instead, it remains the same size, resulting in an unsightly appearance on the page.
I’m seeking guidance on how to adjust the renderer and the camera to ensure they dynamically match the scale of the modal. Any insights or solutions to resolve this issue would be greatly appreciated. Thank you in advance