mirror of https://github.com/FreeTubeApp/FreeTube
Make video thumbnails have certain height before image loading starts to avoid layout shifts (#4723)
* * Make video thumbnails have certain height before image loading starts to avoid layout shifts * * Use "fallback to natural aspect ratio" feature of `aspect-ratio`
This commit is contained in:
parent
4020139840
commit
c386841e78
|
@ -3,3 +3,8 @@
|
|||
.thumbnailLink:hover {
|
||||
outline: 3px solid var(--side-nav-hover-color);
|
||||
}
|
||||
|
||||
.thumbnailImage {
|
||||
// Makes img element sized correctly before image loading starts
|
||||
aspect-ratio: 16/9 auto;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue