justinmahar / react-social-media-embed

📰 Easily embed social media posts from Facebook, Instagram, LinkedIn, Pinterest, TikTok, X (Twitter), and YouTube in React.
https://justinmahar.github.io/react-social-media-embed/
MIT License
214 stars 30 forks source link

Feature request : Option to change height of <img> in embeds #13

Closed himsrv2501 closed 1 year ago

himsrv2501 commented 2 years ago

I wan't to display embeds side by side, but they are having different heights. Using height attribute changes the embed height, instead of contained elements. If there is an option to specify img height, it will help in solving the issue.

image

justinmahar commented 2 years ago

Hey @himsrv2501! Thanks for opening an issue about this. I'll look into ways to add support for this. We may be up to the mercy of Instagram, as their script is responsible for rendering the content/elements in the embed container in an iframe, but there might be a way to modify this by specifying attributes.

justinmahar commented 2 years ago

Hmm I'm not seeing any ways to add height to the embed via the official documentation.

image
justinmahar commented 2 years ago

Not sure if it's possible. If you can find a way to do this, I'll add official support to the library.

justinmahar commented 1 year ago

This doesn't seem possible and the issue has been quiet for some time. Closing for now.