diff --git a/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue b/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue index c870db8b1..d9be60d97 100644 --- a/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue +++ b/frontend/src/components/Recipe/RecipeViewer/Ingredients.vue @@ -1,24 +1,28 @@ @@ -32,6 +36,17 @@ export default { props: { ingredients: Array, }, + data() { + return { + displayIngredients: [], + }; + }, + mounted() { + this.displayIngredients = this.ingredients.map(x => ({ + text: x, + checked: false, + })); + }, methods: { generateKey(item, index) { return utils.generateUniqueKey(item, index); @@ -44,4 +59,8 @@ export default { p { margin-bottom: auto !important; } + +.my-card-text { + overflow-wrap: break-word; +} \ No newline at end of file