From 49d1946f2993c7a09a1f93b07d956d858e341134 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 2 Mar 2025 08:32:58 +0100 Subject: [PATCH] shopping input test --- .../components/display/ShoppingListView.vue | 3 + .../inputs/ShoppingListEntryInput.vue | 101 +++++++++++++++++- vue3/src/stores/UserPreferenceStore.ts | 1 + vue3/src/types/settings.ts | 1 + 4 files changed, 101 insertions(+), 5 deletions(-) diff --git a/vue3/src/components/display/ShoppingListView.vue b/vue3/src/components/display/ShoppingListView.vue index b16aec987..92b186780 100644 --- a/vue3/src/components/display/ShoppingListView.vue +++ b/vue3/src/components/display/ShoppingListView.vue @@ -55,6 +55,9 @@ + + + diff --git a/vue3/src/components/inputs/ShoppingListEntryInput.vue b/vue3/src/components/inputs/ShoppingListEntryInput.vue index a65362d01..6dc891e82 100644 --- a/vue3/src/components/inputs/ShoppingListEntryInput.vue +++ b/vue3/src/components/inputs/ShoppingListEntryInput.vue @@ -1,5 +1,5 @@ - + + \ No newline at end of file +.model-select--density-compact { + --ms-line-height: 1.3; +} + +.model-select--density-comfortable { + --ms-line-height: 1.8; +} + +.model-select--density-default { + --ms-line-height: 2.3; +} + + +.multiselect-tag { + background-color: #b98766 !important; +} + +.z-3000 { + z-index: 3000; +} + diff --git a/vue3/src/stores/UserPreferenceStore.ts b/vue3/src/stores/UserPreferenceStore.ts index 8fc2c40ed..9e15f17e8 100644 --- a/vue3/src/stores/UserPreferenceStore.ts +++ b/vue3/src/stores/UserPreferenceStore.ts @@ -180,6 +180,7 @@ export const useUserPreferenceStore = defineStore('user_preference_store', () => shopping_item_info_created_by: false, shopping_item_info_mealplan: true, shopping_item_info_recipe: true, + shopping_input_autocomplete: true, shopping_show_debug: false, mealplan_displayPeriod: 'week', diff --git a/vue3/src/types/settings.ts b/vue3/src/types/settings.ts index b232a5568..a31deff3b 100644 --- a/vue3/src/types/settings.ts +++ b/vue3/src/types/settings.ts @@ -9,6 +9,7 @@ export type DeviceSettings = { shopping_item_info_created_by: boolean shopping_item_info_mealplan: boolean shopping_item_info_recipe: boolean + shopping_input_autocomplete: boolean shopping_show_debug: boolean mealplan_displayPeriod: string