Fix CLS due to image CSS

This commit is contained in:
Jade Ellis 2024-09-01 16:12:28 +01:00
parent 763ce3d83e
commit cd62747f39
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
2 changed files with 4 additions and 4 deletions

View file

@ -45,8 +45,6 @@
max-height: 60vh;
background-size: cover;
background-repeat: no-repeat;
width: auto;
height: auto;
display: block;
margin-inline: auto;
}

View file

@ -115,8 +115,10 @@ body {
iframe,
img,
svg {
max-width: 100%;
max-height: 100%;
max-block-size: 100%;
max-inline-size: 100%;
inline-size: auto;
block-size: auto;
display: block;
}