Skip to content

Commit 856e24c

Browse files
committed
fix(ui): make YouTube embeds responsive on mobile
Closes #8452. Prevents horizontal overflow caused by fixed-width iframes.
1 parent 6ec6134 commit 856e24c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/styles/index.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,3 +755,11 @@ ol.mdx-illustration-block {
755755
.uwu .uwu-hidden {
756756
display: none;
757757
}
758+
759+
iframe[src^="https://www.youtube.com/embed/"]
760+
{
761+
width: 100% !important;
762+
aspect-ratio: 16 / 9 !important;
763+
height: auto !important;
764+
display: block !important;
765+
}

0 commit comments

Comments
 (0)