-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class="kit-label"> | |
<div> |
src/theme/variables.css
Outdated
@@ -407,6 +407,15 @@ img { | |||
min-width: 9ch; | |||
} | |||
|
|||
.kit-label { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.kit-label { | |
div:has(.kit-badge) { |
src/theme/variables.css
Outdated
align-items: center; | ||
} | ||
|
||
.kit-label > ion-badge { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete selector
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
After
Contribution and Currently Important Rules Acceptance