You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When embedding a Plausible Dashboard one is given a script tag that sets the height of the iframe automatically. Plausible is emitting an event with the height data that is listened to and applied to the Plausible iframe.
Adding the same to OpenPanel is a great way to improve the quality of life of embeddings.
I got this working but radix modals screws me a bit, since they are miss-placed (centered of the content height) and you cannot scroll (since radix disables scroll). Not really sure how to get around this now.
resize.iframer.mp4
You have a branch up if you want to play around with it or if you have any solutions I would love to hear them.
IF ANYONE WANT TO CONTRIBUTE, HERE IS A GREAT FIRST ISSUE
Takes the direction from feature/iframe-resize (thanks @lindesvard) but uses a small postMessage host script instead of iframe-resizer, and pins Radix dialogs to the visible iframe slice so they stay on-screen while the parent scrolls.
Activity
lindesvard commentedon Nov 3, 2025
Sure, sounds like a good idea. Please provide me with code sample and I can do that
keiwanmosaddegh commentedon Nov 3, 2025
I dug in the Plausible codebase and found this:
https://github.com/plausible/analytics/blob/master/assets/js/embed.host.js
<script async src="https://plausible.io/js/embed.host.js"></script>fix: iframe resize #224
lindesvard commentedon Nov 10, 2025
I got this working but radix modals screws me a bit, since they are miss-placed (centered of the content height) and you cannot scroll (since radix disables scroll). Not really sure how to get around this now.
resize.iframer.mp4
You have a branch up if you want to play around with it or if you have any solutions I would love to hear them.
IF ANYONE WANT TO CONTRIBUTE, HERE IS A GREAT FIRST ISSUE
keiwanmosaddegh commentedon Nov 10, 2025
Oh, that looks neat - well done @lindesvard ! Might have some time later this week to look into this, thanks!
lindesvard commentedon Dec 2, 2025
@keiwanmosaddegh if you have time for this I would very happy 🙏
grootbro commentedon Sep 7, 2026
Opened #491 for this.
Takes the direction from
feature/iframe-resize(thanks @lindesvard) but uses a smallpostMessagehost script instead of iframe-resizer, and pins Radix dialogs to the visible iframe slice so they stay on-screen while the parent scrolls.lindesvard commentedon Sep 7, 2026
@grootbro hero! I'll take a look
grootbro commentedon Sep 10, 2026
@lindesvard Thanks! And thanks for the earlier work on
feature/iframe-resize— it was a helpful starting point. Happy to hear your feedback on #491.