From 4dd3ba29b6da8163a91dd54b31ee3789be5d3580 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Tue, 15 Mar 2022 12:35:13 +0100 Subject: [PATCH] improved shopping v2 layout a little bit --- .../apps/ShoppingListView/ShoppingListView.vue | 4 ++-- vue/src/components/ShoppingLineItem.vue | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/vue/src/apps/ShoppingListView/ShoppingListView.vue b/vue/src/apps/ShoppingListView/ShoppingListView.vue index 087bda807..27767d7c7 100644 --- a/vue/src/apps/ShoppingListView/ShoppingListView.vue +++ b/vue/src/apps/ShoppingListView/ShoppingListView.vue @@ -105,7 +105,7 @@ class="btn dropdown-toggle btn-link text-decoration-none text-dark pr-2 dropdown-toggle-no-caret" @click.stop="openContextMenu($event, s, true)" > - + - {{ i }} + {{ i }} diff --git a/vue/src/components/ShoppingLineItem.vue b/vue/src/components/ShoppingLineItem.vue index 2a92f42d9..cb3b2366b 100644 --- a/vue/src/components/ShoppingLineItem.vue +++ b/vue/src/components/ShoppingLineItem.vue @@ -7,35 +7,35 @@
- + - + - + {{ Object.entries(formatAmount)[0][1] }} {{ Object.entries(formatAmount)[0][0] }} - +
{{ x[1] }}   {{ x[0] }}
- + {{ formatFood }} @@ -179,7 +179,7 @@ export default { formatAmount: function () { let amount = {} this.entries.forEach((entry) => { - let unit = entry?.unit?.name ?? "----" + let unit = entry?.unit?.name ?? "---" if (entry.amount) { if (amount[unit]) { amount[unit] += entry.amount