mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-17 09:22:42 -05:00
fix: Improve recipe ingredient selection (#6518)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
@@ -173,9 +173,11 @@
|
|||||||
:items="search.data.value || []"
|
:items="search.data.value || []"
|
||||||
item-title="name"
|
item-title="name"
|
||||||
class="mx-1 py-0"
|
class="mx-1 py-0"
|
||||||
placeholder="Choose Recipe"
|
:placeholder="$t('search.type-to-search')"
|
||||||
clearable
|
clearable
|
||||||
label="Recipe"
|
:label="!model.referencedRecipe ? $t('recipe.choose-recipe') : ''"
|
||||||
|
@click="search.trigger()"
|
||||||
|
@focus="search.trigger()"
|
||||||
>
|
>
|
||||||
<template #prepend />
|
<template #prepend />
|
||||||
</v-autocomplete>
|
</v-autocomplete>
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
style="display: none"
|
style="display: none"
|
||||||
@bulk-data="addIngredient"
|
@bulk-data="addIngredient"
|
||||||
/>
|
/>
|
||||||
<div class="d-inline-flex split-button">
|
<div class="d-inline-flex">
|
||||||
<!-- Main button: Add Food -->
|
<!-- Main button: Add Food -->
|
||||||
<v-btn
|
<v-btn
|
||||||
color="success"
|
color="success"
|
||||||
@@ -263,11 +263,6 @@ function insertNewIngredient(dest: number) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.split-button {
|
|
||||||
border-radius: 4px;
|
|
||||||
overflow: hidden;
|
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
||||||
}
|
|
||||||
.split-main {
|
.split-main {
|
||||||
border-top-right-radius: 0 !important;
|
border-top-right-radius: 0 !important;
|
||||||
border-bottom-right-radius: 0 !important;
|
border-bottom-right-radius: 0 !important;
|
||||||
|
|||||||
@@ -565,6 +565,7 @@
|
|||||||
"choose-unit": "Choose Unit",
|
"choose-unit": "Choose Unit",
|
||||||
"press-enter-to-create": "Press Enter to Create",
|
"press-enter-to-create": "Press Enter to Create",
|
||||||
"choose-food": "Choose Food",
|
"choose-food": "Choose Food",
|
||||||
|
"choose-recipe": "Choose Recipe",
|
||||||
"notes": "Notes",
|
"notes": "Notes",
|
||||||
"toggle-section": "Toggle Section",
|
"toggle-section": "Toggle Section",
|
||||||
"see-original-text": "See Original Text",
|
"see-original-text": "See Original Text",
|
||||||
@@ -734,7 +735,8 @@
|
|||||||
"search-hint": "Press '/'",
|
"search-hint": "Press '/'",
|
||||||
"advanced": "Advanced",
|
"advanced": "Advanced",
|
||||||
"auto-search": "Auto Search",
|
"auto-search": "Auto Search",
|
||||||
"no-results": "No results found"
|
"no-results": "No results found",
|
||||||
|
"type-to-search": "Type to search..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"add-a-new-theme": "Add a New Theme",
|
"add-a-new-theme": "Add a New Theme",
|
||||||
|
|||||||
Reference in New Issue
Block a user