Custom UI modals have a bug where the modals are dynamic height but you can’t set the content to be dynamic height: Option to disable iframe resizer in Forge Custom UI Modal
Atlassian is still struggling to bump up the priority from “minor”. This bug was reported over a year ago.
Here’s the ticket to vote and watch: [FRGE-819] - Ecosystem Jira