mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* add hourglass to header * multiple quest fixes - show quest info in popover/modal * pin backgrounds * unpin gem-purchable items / change pinType of quest to quests * check if hatching potion is allowed on egg - wide hatching info * fix (perf): items - request text()/notes() only once * change items margin to 23px * list cards + open modal to choose a target + add space between market items * buy card from task-list * fix tests - unpin items on purchasing eggs / hatchingPotions
34 lines
531 B
Vue
34 lines
531 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 6px;
|
|
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>
|