Skip to content

Commit

Permalink
refactor(Price add): switch all proof & price fields to density comfo…
Browse files Browse the repository at this point in the history
…rtable (slightly smaller)
  • Loading branch information
raphodn committed Jan 6, 2025
1 parent 51afd10 commit 0da6e53
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PriceInputRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<v-col :cols="priceForm.price_is_discounted ? '6' : '12'" class="pb-0">
<v-text-field
:model-value="priceForm.price"
density="comfortable"
:label="priceForm.price_is_discounted ? $t('PriceForm.LabelDiscounted') : $t('PriceForm.Label')"
type="text"
inputmode="decimal"
Expand All @@ -35,6 +36,7 @@
<v-col v-if="priceForm.price_is_discounted" cols="6" class="pb-0">
<v-text-field
:model-value="priceForm.price_without_discount"
density="comfortable"
:label="$t('PriceForm.LabelFull')"
type="text"
inputmode="decimal"
Expand All @@ -47,7 +49,7 @@
</v-col>
</v-row>
<v-row class="mt-0">
<v-col cols="6">
<v-col cols="6" class="pb-0">
<v-checkbox
v-model="priceForm.price_is_discounted"
density="compact"
Expand Down
2 changes: 2 additions & 0 deletions src/components/ProductInputRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<v-col cols="6">
<v-autocomplete
v-model="productForm.category_tag"
density="comfortable"
:label="$t('AddPriceSingle.ProductInfo.CategoryLabel')"
:items="categoryTags"
:item-title="item => item.name"
Expand All @@ -36,6 +37,7 @@
<v-col cols="6">
<v-autocomplete
v-model="productForm.origins_tags"
density="comfortable"
:label="$t('AddPriceSingle.ProductInfo.OriginLabel')"
:items="originTags"
:item-title="item => item.name"
Expand Down
2 changes: 2 additions & 0 deletions src/components/ProofMetadataInputRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<v-col cols="6">
<v-text-field
v-model="proofMetadataForm.date"
density="comfortable"
:label="$t('Common.Date')"
type="date"
:max="currentDate"
Expand All @@ -12,6 +13,7 @@
<v-col cols="6">
<v-select
v-model="proofMetadataForm.currency"
density="comfortable"
:label="$t('Common.Currency')"
:items="userFavoriteCurrencies"
hide-details="auto"
Expand Down

0 comments on commit 0da6e53

Please sign in to comment.