Fixed aspect ratio for thumnails to prevent CLS

This commit is contained in:
Corné Dorrestijn 2023-11-21 08:14:45 +01:00 committed by ModZero
parent b812d29d9a
commit 4ba44d5942

View File

@ -197,6 +197,7 @@ img.thumbnail {
display: block; /* See: https://stackoverflow.com/a/11635197 */
width: 100%;
object-fit: cover;
aspect-ratio: 16 / 9;
}
.thumbnail-placeholder {