From 12b93058f8db61c8a7d367eaf5dd191fd8b8c874 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Wed, 31 Mar 2021 17:59:50 -0800 Subject: [PATCH] fix line render issue --- .../Recipe/RecipeViewer/Ingredients.vue | 51 +++++++++++++------ 1 file changed, 35 insertions(+), 16 deletions(-) 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