We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6038302 commit 883e24fCopy full SHA for 883e24f
1 file changed
docs/src/components/YouTubePreview/style.css
@@ -1,7 +1,8 @@
1
.youtube-preview-container-fixed {
2
position: relative;
3
- width: 720px;
4
- height: 405px;
+ width: 100%;
+ max-width: 720px;
5
+ aspect-ratio: 16 / 9;
6
margin: 50px auto 0;
7
display: flex;
8
justify-content: center;
@@ -54,19 +55,7 @@
54
55
56
@media screen and (max-width: 768px) {
57
- width: 100%;
58
- height: 0;
59
- padding-bottom: 56.25%;
60
- margin: 1rem 0;
61
- position: relative;
62
- }
63
-
64
- .youtube-preview-iframe,
65
- .youtube-preview-img-wrapper,
66
- .youtube-preview-img {
67
68
- height: auto;
69
- aspect-ratio: 16/9;
+ margin: 1rem auto;
70
}
71
72
.youtube-preview-play svg {
0 commit comments