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

Proposed solution for pixelated YouTube thumbnails #29

Closed PeterHueer closed 1 year ago

PeterHueer commented 1 year ago

I stumbled upon the problem because initially the wrong resolution was loaded for the thumbnail. I already tried to give the iframe a min-width and height but this did not solve the problem. So my approach in the readme has been the only helpful one for me