From 09804de8090b619383b448dc7deec400268855ae Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Sun, 27 Feb 2022 21:53:22 +0100 Subject: [PATCH 1/2] Optimized advanced search settings UX --- .../RecipeSearchView/RecipeSearchView.vue | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue index 20266b913..72e97f7d3 100644 --- a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue +++ b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue @@ -60,24 +60,24 @@ - - + + - - + + - - + + - - + + - - + +
@@ -87,58 +87,58 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -231,7 +231,7 @@ @change="refreshData(false)" class="shadow-none" switch - style="width: 4em" + style="width: 5em" > {{ $t("or") }} {{ $t("and") }} @@ -293,7 +293,7 @@ /> - + {{ $t("or") }} {{ $t("and") }} @@ -339,7 +339,7 @@ > - + {{ $t("or") }} {{ $t("and") }} @@ -371,7 +371,7 @@ /> - + >= <= From 429d381f63b5a663e54ea364766a7a46e32dc184 Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Mon, 28 Feb 2022 19:43:37 +0100 Subject: [PATCH 2/2] Auto selects amount of ingredient when adding new ingredient. --- vue/src/apps/RecipeEditView/RecipeEditView.vue | 2 +- vue/src/locales/de.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index e1dca9e59..3a97167da 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -802,7 +802,7 @@ export default { no_amount: false, }) this.sortIngredients(step) - this.$nextTick(() => document.getElementById(`amount_${this.recipe.steps.indexOf(step)}_${step.ingredients.length - 1}`).focus()) + this.$nextTick(() => document.getElementById(`amount_${this.recipe.steps.indexOf(step)}_${step.ingredients.length - 1}`).select()) }, removeIngredient: function (step, ingredient) { if (confirm(this.$t("confirm_delete", { object: this.$t("Ingredient") }))) { diff --git a/vue/src/locales/de.json b/vue/src/locales/de.json index 5f27dab5d..f9b66e191 100644 --- a/vue/src/locales/de.json +++ b/vue/src/locales/de.json @@ -335,5 +335,6 @@ "sort_by": "Sortiere nach", "Random Recipes": "Zufällige Rezepte", "recipe_filter": "Rezept-Filter", - "parameter_count": "Parameter {count}" + "parameter_count": "Parameter {count}", + "paste_ingredients": "Zutaten einfügen" }