fix(ui): make YouTube embeds responsive on mobile
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:
After:
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!