react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

fix(ui): make YouTube embeds responsive on mobile

Open oceansync opened this issue 6 months ago • 1 comments

Summary

Fixes #8452: Prevent horizontal overflow from fixed-width iframes.

This is achieved by removing hardcoded sizes on iframe elements and adding a style rule for youtube.com/embed iframes to fill the page width while maintaining a 16/9 aspect ratio.

Results

Before: Overflowing iframe image

After: Fixed iframe image

oceansync avatar May 26 '26 17:05 oceansync

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 115.2 KB (🟡 +65 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

github-actions[bot] avatar May 26 '26 17:05 github-actions[bot]