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
228 stars 30 forks source link

fix: remove Instagram loading line #82

Closed JethroNatividad closed 1 month ago

JethroNatividad commented 4 months ago

Removing the width style seems to fix the Instagram overflow when loading https://github.com/justinmahar/react-social-media-embed/issues/65

I added this in my current project as a temporary fix:

.instagram-media {
  width: 0 !important;
}
justinmahar commented 1 month ago

So the solution was to make the parent position relative?

JethroNatividad commented 1 month ago

yes

justinmahar commented 1 month ago

Thanks @JethroNatividad! Just tested it out, works great.

justinmahar commented 1 month ago

Published. Get the latest via:

npm i react-social-media-embed@latest