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;
|
||||
}
|
||||
|
||||
@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
|
||||
.onebox.video-onebox,
|
||||
.video-container {
|
||||
|
|
|
@ -57,6 +57,7 @@ module Onebox
|
|||
height="#{HEIGHT}"
|
||||
frameborder="0"
|
||||
allowfullscreen
|
||||
class="youtube-onebox"
|
||||
></iframe>
|
||||
HTML
|
||||
elsif list_id
|
||||
|
@ -67,6 +68,7 @@ module Onebox
|
|||
height="#{HEIGHT}"
|
||||
frameborder="0"
|
||||
allowfullscreen
|
||||
class="youtube-onebox"
|
||||
></iframe>
|
||||
HTML
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue