Skip to content

Commit

Permalink
feat: Reorder ShoppingListItemEditor (mealie-recipes#4200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuchenpirat authored and boc-the-git committed Sep 28, 2024
1 parent 2c855bd commit be86e37
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions frontend/components/Domain/ShoppingList/ShoppingListItemEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
<v-card outlined>
<v-card-text class="pb-3 pt-1">
<div v-if="listItem.isFood" class="d-md-flex align-center mb-2" style="gap: 20px">
<InputLabelType
v-model="listItem.food"
:items="foods"
:item-id.sync="listItem.foodId"
:label="$t('shopping-list.food')"
:icon="$globals.icons.foods"
@create="createAssignFood"
/>
<div>
<InputQuantity v-model="listItem.quantity" />
</div>
<InputLabelType
v-model="listItem.unit"
:items="units"
Expand All @@ -19,8 +14,20 @@
:icon="$globals.icons.units"
@create="createAssignUnit"
/>
<InputLabelType
v-model="listItem.food"
:items="foods"
:item-id.sync="listItem.foodId"
:label="$t('shopping-list.food')"
:icon="$globals.icons.foods"
@create="createAssignFood"
/>

</div>
<div class="d-md-flex align-center" style="gap: 20px">
<div v-if="!listItem.isFood">
<InputQuantity v-model="listItem.quantity" />
</div>
<v-textarea
v-model="listItem.note"
hide-details
Expand All @@ -32,9 +39,7 @@
</div>
<div class="d-flex flex-wrap align-end" style="gap: 20px">
<div class="d-flex align-end">
<div>
<InputQuantity v-model="listItem.quantity" />
</div>

<div style="max-width: 300px" class="mt-3 mr-auto">
<InputLabelType
v-model="listItem.label"
Expand Down

0 comments on commit be86e37

Please sign in to comment.