diff --git a/frontend/src/api/themes.js b/frontend/src/api/themes.js index 6ff7a85ee..646dfdf38 100644 --- a/frontend/src/api/themes.js +++ b/frontend/src/api/themes.js @@ -33,7 +33,6 @@ export default { colors: colors, }; let response = await apiReq.put(settingsURLs.updateTheme(themeName), body); - console.log(response.data); return response.data; }, diff --git a/frontend/src/components/MealPlan/MealPlanNew.vue b/frontend/src/components/MealPlan/MealPlanNew.vue index 1af227f21..8eaaa4389 100644 --- a/frontend/src/components/MealPlan/MealPlanNew.vue +++ b/frontend/src/components/MealPlan/MealPlanNew.vue @@ -120,7 +120,6 @@ export default { }, async mounted() { let settings = await api.settings.requestAll(); - console.log(settings); this.items = await api.recipes.getAllByCategory(settings.planCategories); }, diff --git a/frontend/src/components/MealPlan/ShoppingListDialog.vue b/frontend/src/components/MealPlan/ShoppingListDialog.vue index 392d8dcf7..0af7f3d01 100644 --- a/frontend/src/components/MealPlan/ShoppingListDialog.vue +++ b/frontend/src/components/MealPlan/ShoppingListDialog.vue @@ -72,7 +72,6 @@ export default { }, async getIngredients() { this.ingredients = await api.mealPlans.shoppingList(this.planID); - console.log(this.ingredients); this.getRawIngredients(); }, getRawIngredients() { @@ -82,7 +81,6 @@ export default { this.rawIngredients = this.rawIngredients.flat(); this.rawIngredients = this.levenshteinFilter(this.rawIngredients); - console.log(this.rawIngredients); }, levenshteinFilter(source, maximum = 5) { let _source, matches, x, y; diff --git a/frontend/src/components/Recipe/RecipeTimeCard.vue b/frontend/src/components/Recipe/RecipeTimeCard.vue index 64596fae3..06943b9ea 100644 --- a/frontend/src/components/Recipe/RecipeTimeCard.vue +++ b/frontend/src/components/Recipe/RecipeTimeCard.vue @@ -1,50 +1,58 @@ - + mdi-clock-outline + + + + + + + + {{ $t("recipe.total-time") }} + + {{ totalTime }} + + + + + + - - - mdi-clock-outline - - - - {{ $t("recipe.total-time") }} - {{ totalTime }} - - - - {{ $t("recipe.prep-time") }} - {{ prepTime }} - - - - {{ $t("recipe.perform-time") }} - {{ performTime }} - - - + + + {{ $t("recipe.prep-time") }} + + {{ prepTime }} + + + + + + + + + + {{ $t("recipe.perform-time") }} + + {{ performTime }} + + @@ -59,7 +67,7 @@ export default { timeLength() { let times = []; let timeArray = [this.totalTime, this.prepTime, this.performTime]; - timeArray.forEach((element) => { + timeArray.forEach(element => { if (element) { times.push(element); } @@ -83,10 +91,10 @@ export default { }, timeCardWidth() { let timeArray = [this.totalTime, this.prepTime, this.performTime]; - let width = 120; - timeArray.forEach((element) => { + let width = 80; + timeArray.forEach(element => { if (element) { - width += 70; + width += 95; } }); diff --git a/frontend/src/components/Settings/MealPlanner/index.vue b/frontend/src/components/Settings/MealPlanner/index.vue index 298cd6830..8ea8ab61a 100644 --- a/frontend/src/components/Settings/MealPlanner/index.vue +++ b/frontend/src/components/Settings/MealPlanner/index.vue @@ -10,18 +10,22 @@ diff --git a/frontend/src/components/UI/RecipeCard.vue b/frontend/src/components/UI/RecipeCard.vue index ad688f2c7..13aca1f38 100644 --- a/frontend/src/components/UI/RecipeCard.vue +++ b/frontend/src/components/UI/RecipeCard.vue @@ -14,12 +14,16 @@ style="height: 100%;" > - {{ description }} + {{ description | truncate(300) }} - {{ name | truncate(30) }} + + + {{ name }} + + @@ -75,4 +79,10 @@ export default { .v-card--text-show { opacity: 1 !important; } +.headerClass { + white-space: nowrap; + word-break: normal; + overflow: hidden; + text-overflow: ellipsis; +} \ No newline at end of file diff --git a/frontend/src/components/UI/SearchBar.vue b/frontend/src/components/UI/SearchBar.vue index 4d80f4d0d..95e8adc5f 100644 --- a/frontend/src/components/UI/SearchBar.vue +++ b/frontend/src/components/UI/SearchBar.vue @@ -90,7 +90,6 @@ export default { .map(x => ({ item: x })) .sort((a, b) => (a.name > b.name ? 1 : -1)); } - console.log(this.result); this.$emit("results", this.result); if (this.showResults === true) { diff --git a/frontend/src/components/UI/SearchDialog.vue b/frontend/src/components/UI/SearchDialog.vue index 30d270d6e..cd245d69e 100644 --- a/frontend/src/components/UI/SearchDialog.vue +++ b/frontend/src/components/UI/SearchDialog.vue @@ -58,7 +58,6 @@ export default { }, methods: { updateResults(results) { - console.log(results); this.searchResults = results; }, emitSelect(name, slug) { diff --git a/frontend/src/pages/MealPlanPage.vue b/frontend/src/pages/MealPlanPage.vue index b9918c9ba..90d583d2a 100644 --- a/frontend/src/pages/MealPlanPage.vue +++ b/frontend/src/pages/MealPlanPage.vue @@ -134,7 +134,6 @@ export default { this.requestMeals(); }, openShoppingList(id) { - console.log(this.$refs.shoppingList.openDialog); this.$refs.shoppingList.openDialog(id); }, },