diff --git a/website/client/assets/scss/item.scss b/website/client/assets/scss/item.scss index da4056acfe..01021ec567 100644 --- a/website/client/assets/scss/item.scss +++ b/website/client/assets/scss/item.scss @@ -2,7 +2,7 @@ .items > div { display: inline-block; - margin-right: 23px; + margin-right: 24px; } .items > div:last-of-type { diff --git a/website/client/components/inventory/items/index.vue b/website/client/components/inventory/items/index.vue index cb747fcb20..05e7ef4dd4 100644 --- a/website/client/components/inventory/items/index.vue +++ b/website/client/components/inventory/items/index.vue @@ -127,10 +127,7 @@ :count="context.item.quantity" ) - hatchedPetDialog( - :pet="hatchedPet", - @closed="closeHatchedPetDialog()" - ) + hatchedPetDialog() div.hatchingPotionInfo(ref="draggingPotionInfo") div(v-if="currentDraggingPotion != null") @@ -251,7 +248,6 @@ export default { currentDraggingPotion: null, potionClickMode: false, - hatchedPet: null, cardOptions: { cardType: '', messageOptions: 0, @@ -345,7 +341,7 @@ export default { }, hatchPet (potion, egg) { this.$store.dispatch('common:hatch', {egg: egg.key, hatchingPotion: potion.key}); - this.hatchedPet = createAnimal(egg, potion, 'pet', this.content, this.user.items); + this.$root.$emit('hatchedPet::open', createAnimal(egg, potion, 'pet', this.content, this.user.items)); }, onDragEnd () { this.currentDraggingPotion = null; @@ -405,9 +401,6 @@ export default { this.potionClickMode = false; } }, - closeHatchedPetDialog () { - this.hatchedPet = null; - }, async itemClicked (groupKey, item) { if (item.type && item.type === 'card') { diff --git a/website/client/components/inventory/stable/hatchedPetDialog.vue b/website/client/components/inventory/stable/hatchedPetDialog.vue index 98217031f6..3c1610a91f 100644 --- a/website/client/components/inventory/stable/hatchedPetDialog.vue +++ b/website/client/components/inventory/stable/hatchedPetDialog.vue @@ -1,12 +1,10 @@