@@ -265,43 +263,10 @@
-
-
-
-
-
- {{ $t('dragThisFood', {foodName: currentDraggingFood.text() }) }}
-
-
-
-
-
-
-
-
-
- {{ $t('clickOnPetToFeed', {foodName: currentDraggingFood.text() }) }}
-
-
-
-
+
@@ -364,34 +329,6 @@
margin-bottom: 0;
}
- .foodInfo {
- position: absolute;
- left: -500px;
-
- z-index: 1080;
-
- &.mouse {
- position: fixed;
- pointer-events: none
- }
-
- .food-icon {
- margin: 0 auto 8px;
- transform: scale(1.5);
- }
-
- .popover {
- position: inherit;
- width: 180px;
- }
-
- .popover-content {
- color: white;
- margin: 15px;
- text-align: center;
- }
- }
-
.hatchablePopover {
width: 180px;
@@ -428,6 +365,7 @@ import _throttle from 'lodash/throttle';
import groupBy from 'lodash/groupBy';
import { mapState } from '@/libs/store';
+import ItemPopover from '@/components/inventory/itemPopover';
import PetItem from './petItem';
import MountItem from './mountItem.vue';
import FoodItem from './foodItem';
@@ -440,7 +378,6 @@ import InventoryDrawer from '@/components/shared/inventoryDrawer';
import ResizeDirective from '@/directives/resize.directive';
import DragDropDirective from '@/directives/dragdrop.directive';
-import MouseMoveDirective from '@/directives/mouseposition.directive';
import { createAnimal } from '@/libs/createAnimal';
@@ -450,7 +387,6 @@ import notifications from '@/mixins/notifications';
import openedItemRowsMixin from '@/mixins/openedItemRows';
import petMixin from '@/mixins/petMixin';
import seasonalNPC from '@/mixins/seasonalNPC';
-import Sprite from '@/components/ui/sprite';
import { CONSTANTS, setLocalSetting, getLocalSetting } from '@/libs/userlocalManager';
import { isOwned } from '../../../libs/createAnimal';
@@ -483,12 +419,11 @@ export default {
WelcomeModal,
HatchingModal,
InventoryDrawer,
- Sprite,
+ ItemPopover,
},
directives: {
resize: ResizeDirective,
drag: DragDropDirective,
- mousePosition: MouseMoveDirective,
},
mixins: [notifications, openedItemRowsMixin, petMixin, seasonalNPC],
data () {