Images style fix
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled

This commit is contained in:
2026-02-08 18:18:03 +01:00
parent 2d972e1bdb
commit a2d8844c35
2 changed files with 16 additions and 16 deletions

View File

@@ -239,8 +239,9 @@ function renderRecipes(recipes) {
: ""
}
</div>
<div class="recipe-img">
<div class="recipe-image-wrapper">
<img
class="recipe-image"
src="/spirits/${recipe.name?.toLowerCase()}.jpg"
alt=""
onerror="this.onerror=null; this.src='/spirits/default.png';"

View File

@@ -272,20 +272,18 @@ h2 {
.recipe-content {
width: 100%;
}
.recipe-img {
.recipe-image-wrapper {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
min-width: 30%;
margin-top: 0.5rem;
margin-top: 1rem;
}
.recipe-img img {
width: 50%;
height: 100%;
object-fit: contain;
.recipe-image {
width: 60%;
display: block;
border-radius: 1rem;
}
}
@@ -306,18 +304,19 @@ h2 {
.recipe-content {
width: 70%;
}
.recipe-img {
width: 30%;
min-width: 30%;
max-width: 30%;
margin-left: 0.5rem;
.recipe-image-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 35%;
}
.recipe-img img {
.recipe-image {
margin-left: 1rem;
width: 100%;
height: 100%;
object-fit: contain;
display: block;
border-radius: 1rem;
}
}