From 21045f1c5d0185797e09a0304181dfbfc2dfe9e6 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Wed, 31 Mar 2021 17:28:00 -0800 Subject: [PATCH] markdown support in ingredients --- frontend/src/components/Recipe/RecipeCard.vue | 26 ++++++++---------- .../Recipe/RecipeViewer/Ingredients.vue | 27 ++++++++++++++----- frontend/src/components/UI/CardSection.vue | 5 ++++ 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/Recipe/RecipeCard.vue b/frontend/src/components/Recipe/RecipeCard.vue index 13aca1f38..299f983ba 100644 --- a/frontend/src/components/Recipe/RecipeCard.vue +++ b/frontend/src/components/Recipe/RecipeCard.vue @@ -26,21 +26,16 @@ - - - - - - - + + @@ -55,6 +50,7 @@ export default { description: String, rating: Number, image: String, + route: { default: true, }, diff --git a/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue b/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue index 70a8c798c..c870db8b1 100644 --- a/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue +++ b/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue @@ -5,20 +5,30 @@ v-for="(ingredient, index) in ingredients" :key="generateKey('ingredient', index)" > - - + + + + + + + + + \ No newline at end of file diff --git a/frontend/src/components/UI/CardSection.vue b/frontend/src/components/UI/CardSection.vue index 82ff6c141..d8bc5727b 100644 --- a/frontend/src/components/UI/CardSection.vue +++ b/frontend/src/components/UI/CardSection.vue @@ -99,6 +99,11 @@ export default { default: 999, }, }, + watch: { + recipes() { + console.log(this.recipes); + }, + }, computed: { viewScale() { switch (this.$vuetify.breakpoint.name) {