Refac fix layout jumps when image loadeding (#1151)

* Fix layout shifts when images load

* Refac keep aspect ratio code style
This commit is contained in:
Merlin 2026-04-11 04:19:25 +02:00 committed by GitHub
parent 23eac2ce12
commit a5a893e366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -625,6 +625,8 @@ video:-webkit-full-screen {
.video-thumb img {
width: 100%;
position: relative;
aspect-ratio: 16 / 9;
background: var(--highlight-bg-transparent);
}
.video-tags {
@ -1088,6 +1090,8 @@ video:-webkit-full-screen {
.channel-banner img {
width: 100%;
aspect-ratio: 18 / 3;
background: var(--highlight-bg-transparent);
}
.channel-banner.grid {