diff --git a/src/components/EditMealPage.vue b/src/components/EditMealPage.vue
index dcd70cb..b215078 100644
--- a/src/components/EditMealPage.vue
+++ b/src/components/EditMealPage.vue
@@ -3,6 +3,7 @@
+
Foods
@@ -24,10 +25,11 @@ import data from '@/data.js'
import RecipeSearchBox from './RecipeSearchBox.vue';
import RecipeCard from './RecipeCard.vue';
import DatePicker from './DatePicker.vue';
+import IngredientAddBox from './IngredientAddBox.vue';
export default {
props: ['id'],
- components: { RecipeSearchBox, DatePicker, RecipeCard },
+ components: { RecipeSearchBox, DatePicker, RecipeCard, IngredientAddBox },
data() {
return {
meal: {
@@ -45,7 +47,7 @@ export default {
},
methods: {
selectRecipe(recipe) {
- this.meal.recipes.push(recipe);
+ this.meal.recipes.unshift(recipe);
},
selectDate(date) {
this.meal.date = date;
diff --git a/src/components/EditRecipePage.vue b/src/components/EditRecipePage.vue
index 9364028..fc76054 100644
--- a/src/components/EditRecipePage.vue
+++ b/src/components/EditRecipePage.vue
@@ -16,11 +16,14 @@
Ingredients
@@ -64,6 +67,19 @@ ul {
li {
list-style: none;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ padding: 5px;
+ margin: 1vh;
+}
+
+.ingredient-line {
+ flex: 1;
+ margin: 0;
+ margin-right: 1em;
}
diff --git a/src/components/IngredientAddBox.vue b/src/components/IngredientAddBox.vue
new file mode 100644
index 0000000..237090f
--- /dev/null
+++ b/src/components/IngredientAddBox.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/IngredientLine.vue b/src/components/IngredientLine.vue
index f553af7..cf639d2 100644
--- a/src/components/IngredientLine.vue
+++ b/src/components/IngredientLine.vue
@@ -27,9 +27,6 @@
-
-
-