fix: On smaller screens max height of image is less

This commit is contained in:
Bradley Shellnut 2023-04-21 10:12:07 -07:00
parent fe65d64036
commit 979c777c64
4 changed files with 10 additions and 6 deletions

View file

@ -14,7 +14,7 @@
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@iconify-icons/material-symbols": "^1.2.37",
"@iconify-icons/material-symbols": "^1.2.38",
"@iconify-icons/mdi": "^1.2.44",
"@iconify-icons/radix-icons": "^1.2.8",
"@iconify-icons/simple-icons": "^1.2.48",

View file

@ -13,8 +13,8 @@ dependencies:
devDependencies:
'@iconify-icons/material-symbols':
specifier: ^1.2.37
version: 1.2.37
specifier: ^1.2.38
version: 1.2.38
'@iconify-icons/mdi':
specifier: ^1.2.44
version: 1.2.44
@ -930,8 +930,8 @@ packages:
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
dev: true
/@iconify-icons/material-symbols@1.2.37:
resolution: {integrity: sha512-EDrnBXdj2Iem9pR0sT8Y/0m7ClP0ygiDuBdZn31wbfjRyEdWFU+yK98lOXO1j+DFUYuJXAe06NJ3GRfrJ0m5WA==}
/@iconify-icons/material-symbols@1.2.38:
resolution: {integrity: sha512-w2hv944ibUojEzPvDuVGuFtxYDyQpy1PnKj+Vm5eQ2fy8a26UBzjB0l3eHd50DIZVZv80b8oFPec1PCrh8rutA==}
dependencies:
'@iconify/types': 2.0.0
dev: true

View file

@ -46,5 +46,9 @@
@media(max-width: 800px) {
max-height: 350px;
}
@media(max-width: 500px) {
max-height: 300px;
}
}
</style>

View file

@ -10,7 +10,7 @@ const config: UserConfig = {
// By default, directives are `?width=480;1024;1920&format=avif;webp;jpg`
// Now we change it to generate 5 variants instead - `avif/jpg` formats at `640/1280` + LQIP
defaultDirectives: () =>
new URLSearchParams('?width=320;480;640;1024;1920&format=avif;webp;jpg&lqip=64')
new URLSearchParams('?width=300;480;640;1024;1920&format=avif;webp;jpg&lqip=64')
})
],
test: {