mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* extract inventoryDrawer from market * show scrollbar only if needed * extract featuredItemsHeader / pinUtils * extract pageLayout * extract layoutSection / filterDropdown - fix sortByNumber * rollback sortByNumber order-fix * move equipment lists out of the layout-section (for now) * refactor sellModal * extract checkbox * extract equipment section * extract category row * revert scroll - remove sellModal item template * fix(lint): commas and semis * Created category item component (#10613) * extract filter sidebar * fix gemCount - fix raising the item count if the item wasn't previously owned * fixes #10659 * remove unneeded method
34 lines
532 B
Vue
34 lines
532 B
Vue
<template lang="pug">
|
|
span.badge.badge-pill.badge-item.badge-count(
|
|
v-if="show && count > 0",
|
|
) {{ count }}
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
@import '~client/assets/scss/colors.scss';
|
|
|
|
.badge-count {
|
|
right: -9px;
|
|
color: $white;
|
|
background: $gray-200;
|
|
padding: 4.5px 8.5px;
|
|
min-width: 24px;
|
|
height: 24px;
|
|
box-shadow: 0 1px 1px 0 rgba($black, 0.12);
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
show: {
|
|
type: Boolean,
|
|
},
|
|
count: {
|
|
type: Number,
|
|
},
|
|
},
|
|
};
|
|
</script>
|