Skip to content

Commit

Permalink
Merge pull request #98 from ymaheshwari1/fix/styling
Browse files Browse the repository at this point in the history
Improved: UI for the filter cards
  • Loading branch information
ymaheshwari1 authored Feb 15, 2024
2 parents 6b43843 + 53ab2d1 commit ca5f9bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</div>
</ion-card>
<section class="filters">
<ion-card>
<ion-card class="ion-padding-vertical">
<ion-item>
<ion-icon slot="start" :icon="filterOutline"/>
<ion-label>{{ translate("Filters") }}</ion-label>
Expand Down Expand Up @@ -163,7 +163,7 @@
<ion-chip outline @click="selectValue('BRK_SAFETY_STOCK', 'Add safety stock')">{{ getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue || getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue == 0 ? getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue : "-" }}</ion-chip>
</ion-item>
</ion-card>
<ion-card>
<ion-card class="ion-padding-vertical">
<ion-item>
<ion-icon slot="start" :icon="swapVerticalOutline"/>
<ion-label>{{ translate("Sort") }}</ion-label>
Expand Down Expand Up @@ -1091,7 +1091,8 @@ async function save() {
<style scoped>
.filters {
display: grid;
grid-template-columns: repeat(2, auto);
grid-template-columns: repeat(2, 1fr);
align-items: start;
}
.actions {
Expand All @@ -1100,8 +1101,9 @@ async function save() {
.rule-info {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-template-columns: 1fr 1fr;
align-items: start;
gap: var(--spacer-xs)
}
ion-content > div {
Expand Down

0 comments on commit ca5f9bd

Please sign in to comment.