mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 08:08:24 -05:00
first overlay working
This commit is contained in:
@@ -1,15 +1,29 @@
|
|||||||
<template>
|
<template>
|
||||||
<template v-if="!loading">
|
<template v-if="!loading">
|
||||||
<v-card :to="`/recipe/${recipe.id}`" :style="{'height': height}">
|
<v-card :to="`/recipe/${recipe.id}`" :style="{'height': height}">
|
||||||
|
<v-tooltip
|
||||||
<v-img v-if="recipe.image != null"
|
class="align-center justify-center"
|
||||||
|
location="top center" origin="overlap"
|
||||||
|
no-click-animation
|
||||||
|
:open-on-hover="recipe.description != null && recipe.description != ''"
|
||||||
|
contained
|
||||||
|
opacity="2%"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-img v-if="recipe.image != null" v-bind="props"
|
||||||
cover
|
cover
|
||||||
height="60%"
|
height="60%"
|
||||||
:src="recipe.image"
|
:src="recipe.image"
|
||||||
></v-img>
|
></v-img>
|
||||||
<v-img v-else src="../../assets/recipe_no_image.svg" cover
|
<v-img v-else src="../../assets/recipe_no_image.svg" cover v-bind="props"
|
||||||
height="60%"></v-img>
|
height="60%"></v-img>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
<div v-if="recipe.description != null && recipe.description != ''">
|
||||||
|
{{recipe.description}}
|
||||||
|
</div>
|
||||||
|
</v-tooltip>
|
||||||
|
|
||||||
<v-card-item>
|
<v-card-item>
|
||||||
<v-card-title>{{ recipe.name }}</v-card-title>
|
<v-card-title>{{ recipe.name }}</v-card-title>
|
||||||
|
|
||||||
@@ -34,7 +48,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
<div>{{ recipe.description }}</div>
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
@@ -42,7 +55,9 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<v-card :style="{'height': height}">
|
<v-card :style="{'height': height}">
|
||||||
<v-img src="../../assets/recipe_no_image.svg" cover height="60%"></v-img>
|
<v-img src="../../assets/recipe_no_image.svg" cover height="60%"></v-img>
|
||||||
<v-card-title><v-skeleton-loader type="heading"></v-skeleton-loader></v-card-title>
|
<v-card-title>
|
||||||
|
<v-skeleton-loader type="heading"></v-skeleton-loader>
|
||||||
|
</v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-skeleton-loader type="subtitle"></v-skeleton-loader>
|
<v-skeleton-loader type="subtitle"></v-skeleton-loader>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|||||||
@@ -8,9 +8,10 @@ import {createVuetify} from 'vuetify'
|
|||||||
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
||||||
export default createVuetify({
|
export default createVuetify({
|
||||||
defaults: {
|
defaults: {
|
||||||
VCard: {
|
// disabled as this leads to cards overflowing if not careful, manually set on cards containing a multiselect until proper solution is found
|
||||||
class: 'overflow-visible' // this is needed so that vue-multiselect options show above a card, vuetify uses overlay container to avoid this
|
// VCard: {
|
||||||
}
|
// class: 'overflow-visible' // this is needed so that vue-multiselect options show above a card, vuetify uses overlay container to avoid this
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
defaultTheme: 'light',
|
defaultTheme: 'light',
|
||||||
|
|||||||
Reference in New Issue
Block a user