Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: misalignment of Kit tag and inventory number (#658) #666

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

amansinghbais
Copy link
Contributor

Related Issues

#658

Short Description and Why It's Useful

Improved code to properly align the kit badge, and the inventory count in product metadata.

Screenshots of Visual Changes before/after (If There Are Any)

Before
Screenshot from 2024-07-25 15-06-01
Screenshot from 2024-07-25 15-11-56

After
Screenshot from 2024-07-25 15-05-27
Screenshot from 2024-07-25 15-12-10

Contribution and Currently Important Rules Acceptance

@dt2patel
Copy link
Contributor

Will review

<ion-badge color="dark" v-if="isKit(item)">{{ translate("Kit") }}</ion-badge>
<div class="kit-label">
{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : item.productName }}
<ion-badge color="dark" v-if="isKit(item)">{{ translate("Kit") }}</ion-badge>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<ion-badge color="dark" v-if="isKit(item)">{{ translate("Kit") }}</ion-badge>
<ion-badge class="kit-badge" color="dark" v-if="isKit(item)">{{ translate("Kit") }}</ion-badge>

@@ -29,8 +29,10 @@
</ion-thumbnail>
<ion-label>
<p class="overline">{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}</p>
{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : item.productName }}
<ion-badge color="dark" v-if="isKit(item)">{{ translate("Kit") }}</ion-badge>
<div class="kit-label">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div class="kit-label">
<div>

@@ -407,6 +407,15 @@ img {
min-width: 9ch;
}

.kit-label {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.kit-label {
div:has(.kit-badge) {

src/theme/variables.css Show resolved Hide resolved
align-items: center;
}

.kit-label > ion-badge {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete selector

@dt2patel dt2patel merged commit 1892172 into hotwax:main Feb 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants