From 59d1c1dcdc769afc284cc3630bf7765ddaca7001 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 19 Feb 2023 10:02:31 +0100 Subject: [PATCH] improved bottom nav with slots and more --- vue/src/apps/MealPlanView/MealPlanView.vue | 21 +++-- .../RecipeSearchView/RecipeSearchView.vue | 4 +- vue/src/components/BottomNavigationBar.vue | 80 ++++++++++++++++--- 3 files changed, 85 insertions(+), 20 deletions(-) diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue index 43542a862..37392547f 100644 --- a/vue/src/apps/MealPlanView/MealPlanView.vue +++ b/vue/src/apps/MealPlanView/MealPlanView.vue @@ -208,7 +208,7 @@ > -
- - - - - - + + + + + +
@@ -249,7 +249,12 @@
- + + +
diff --git a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue index 86fba2d55..7616a1903 100644 --- a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue +++ b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue @@ -957,7 +957,9 @@ :create_date="mealplan_default_date" > - + + + diff --git a/vue/src/components/BottomNavigationBar.vue b/vue/src/components/BottomNavigationBar.vue index f88daae80..a2a1f09a4 100644 --- a/vue/src/components/BottomNavigationBar.vue +++ b/vue/src/components/BottomNavigationBar.vue @@ -2,20 +2,58 @@
-
-
Recipes
+
+ + +
Recipes
+
+
-
-
Plans
+
+ + +
Plans
+
+
-
-
+
+ +
+ + +
+
+
-
-
Shopping
+ -
-
Books
+
+ + + +
Books
+
+
@@ -27,7 +65,19 @@ import {ResolveUrlMixin} from "@/utils/utils"; export default { name: "BottomNavigationBar", - mixins: [ResolveUrlMixin] + mixins: [ResolveUrlMixin], + props: { + create_links: { + type: Array, default() { + return [] + } + }, + show_button_1: {type: Boolean, default: true}, + show_button_2: {type: Boolean, default: true}, + show_button_3: {type: Boolean, default: true}, + show_button_4: {type: Boolean, default: true}, + show_button_create: {type: Boolean, default: true}, + } } @@ -36,4 +86,12 @@ export default { .bottom-nav-link { color: #666666 } + +.center-dropup { + right: auto; + left: 50%; + -webkit-transform: translate(-50%, 0); + -o-transform: translate(-50%, 0); + transform: translate(-50%, 0); +} \ No newline at end of file