UX: Make YouTube playlist onebox full width to match video onebox (#16936)
This commit is contained in:
parent
5c596273a0
commit
8fe3934856
|
@ -823,6 +823,16 @@ aside.onebox.xkcd .onebox-body img {
|
||||||
@extend .imgur-album;
|
@extend .imgur-album;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@supports (aspect-ratio: 1) {
|
||||||
|
// Not supported on iOS < 15. For those devices, we just
|
||||||
|
// use the fixed width/height attributes on the iframe
|
||||||
|
.youtube-onebox {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Force oneboxed videos to 16:9 aspect ratio
|
// Force oneboxed videos to 16:9 aspect ratio
|
||||||
.onebox.video-onebox,
|
.onebox.video-onebox,
|
||||||
.video-container {
|
.video-container {
|
||||||
|
|
|
@ -57,6 +57,7 @@ module Onebox
|
||||||
height="#{HEIGHT}"
|
height="#{HEIGHT}"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
allowfullscreen
|
allowfullscreen
|
||||||
|
class="youtube-onebox"
|
||||||
></iframe>
|
></iframe>
|
||||||
HTML
|
HTML
|
||||||
elsif list_id
|
elsif list_id
|
||||||
|
@ -67,6 +68,7 @@ module Onebox
|
||||||
height="#{HEIGHT}"
|
height="#{HEIGHT}"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
allowfullscreen
|
allowfullscreen
|
||||||
|
class="youtube-onebox"
|
||||||
></iframe>
|
></iframe>
|
||||||
HTML
|
HTML
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue