Skip to content

Commit

Permalink
Merge pull request #90 from ymaheshwari1/fix/distance-position-in-pic…
Browse files Browse the repository at this point in the history
…kup-modal

Improved: position of distance label in the pickup modal and also improved indentation
  • Loading branch information
ymaheshwari1 authored Jun 25, 2024
2 parents 8d1e5e9 + 29b9e5c commit 77b9188
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/views/PickupLocationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
<ion-radio-group v-model="selectedFacility">
<ion-item v-for="store of nearbyStores" :key="store.facilityId">
<ion-radio :value="store">
<ion-label>
{{ store.facilityName }}
<p>{{ store.address1 }}</p>
<p>{{ store.city }}{{ store.city && store.state ? ", " : "" }}{{ store.state }}</p>
</ion-label>
<!-- Showing store distance in miles -->
<ion-label v-if="store.distance">{{ store.distance }} {{ $t("mi") }}</ion-label>
<ion-label>
{{ store.facilityName }}
<p>{{ store.address1 }}</p>
<p>{{ store.city }}{{ store.city && store.state ? ", " : "" }}{{ store.state }}</p>
</ion-label>
<!-- Showing store distance in miles -->
<ion-label v-if="store.distance">{{ store.distance }} {{ $t("mi") }}</ion-label>
</ion-radio>
</ion-item>
</ion-radio-group>
Expand Down Expand Up @@ -248,6 +248,7 @@ export default defineComponent({
ion-radio::part(label) {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%
}
</style>

0 comments on commit 77b9188

Please sign in to comment.