If it's an issue on their end [...]
Yes, I'm afraid this is entirely on their end. From what I understand, Truth Social is based on a fork of Mastodon that has not been kept in sync with the original. Comparing their
embed.js
file, I see that they are missing
this fix related to embeds' resizing. Truth Social's
embed.js
file contains a custom modification that adds a fixed amount of padding set to
165px
, which may be an attempt to mitigate issues related to resizing, I don't know.
There is a secondary issue in Truth Social's code in that (as far as I can tell) they have disabled
this part of the original code which is responsible for answering queries about the embed's height. Being aware of potential resizing issues in that type of embeds (Mastodon or others, this is a common issue) I have set the add-on to periodically ask/poll the embedded page about its current size, so that even if the provider (here, Truth Social) does not proactively notifies the embedder in real time that the content needs to be resized, it should still end up with the right dimensions eventually.
Your best bet here would be to report this to Truth Social's team. If they re-enable communication (the embedded page needs to reply to
setHeight
messages) then the embeds should get resized correctly. I should also mention that their official embed code (seen below) suffers from similar issues. The content isn't resized to the correct dimensions, although you still get to see 165 more pixels of it due to the fixed padding.
HTML:
<iframe src="https://truthsocial.com/@realDonaldTrump/112884145655105485/embed" class="truthsocial-embed truthsocial-video" style="max-width: 100%; border: 0" width="600" allowfullscreen="allowfullscreen"></iframe>
<script src="https://truthsocial.com/embed.js" async="async"></script>