mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
fix: Image height in home screen mobile format (#4088)
This commit is contained in:
parent
22057cad19
commit
67dc0d7066
3 changed files with 13 additions and 6 deletions
|
@ -2,6 +2,8 @@
|
||||||
<v-img
|
<v-img
|
||||||
v-if="!fallBackImage"
|
v-if="!fallBackImage"
|
||||||
:height="height"
|
:height="height"
|
||||||
|
min-height="125"
|
||||||
|
max-height="fill-height"
|
||||||
:src="getImage(recipeId)"
|
:src="getImage(recipeId)"
|
||||||
@click="$emit('click')"
|
@click="$emit('click')"
|
||||||
@load="fallBackImage = false"
|
@load="fallBackImage = false"
|
||||||
|
@ -52,8 +54,8 @@ export default defineComponent({
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
type: Number,
|
type: [Number, String],
|
||||||
default: 200,
|
default: "fill-height",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
|
|
|
@ -20,14 +20,14 @@
|
||||||
</v-img>
|
</v-img>
|
||||||
<v-list-item three-line :class="vertical ? 'px-2' : 'px-0'">
|
<v-list-item three-line :class="vertical ? 'px-2' : 'px-0'">
|
||||||
<slot v-if="!vertical" name="avatar">
|
<slot v-if="!vertical" name="avatar">
|
||||||
<v-list-item-avatar tile size="125" class="v-mobile-img rounded-sm my-0">
|
<v-list-item-avatar tile width="125" height="avatarSize" class="v-mobile-img rounded-sm my-0">
|
||||||
<RecipeCardImage
|
<RecipeCardImage
|
||||||
:icon-size="100"
|
:icon-size="100"
|
||||||
:height="125"
|
:height="avatarSize"
|
||||||
:slug="slug"
|
:slug="slug"
|
||||||
:recipe-id="recipeId"
|
:recipe-id="recipeId"
|
||||||
small
|
|
||||||
:image-version="image"
|
:image-version="image"
|
||||||
|
small
|
||||||
/>
|
/>
|
||||||
</v-list-item-avatar>
|
</v-list-item-avatar>
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -135,6 +135,10 @@ export default defineComponent({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
avatarSize: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: 125,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const { $auth } = useContext();
|
const { $auth } = useContext();
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
<ContextMenu
|
<ContextMenu
|
||||||
v-if="!$vuetify.breakpoint.xsOnly"
|
v-if="!$vuetify.breakpoint.smAndDown"
|
||||||
:items="[
|
:items="[
|
||||||
{
|
{
|
||||||
title: $tc('general.toggle-view'),
|
title: $tc('general.toggle-view'),
|
||||||
|
@ -104,6 +104,7 @@
|
||||||
:image="recipe.image"
|
:image="recipe.image"
|
||||||
:tags="recipe.tags"
|
:tags="recipe.tags"
|
||||||
:recipe-id="recipe.id"
|
:recipe-id="recipe.id"
|
||||||
|
avatar-size="fill-height"
|
||||||
/>
|
/>
|
||||||
</v-lazy>
|
</v-lazy>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue