@rpg-engine/long-bow 0.5.78 → 0.5.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/long-bow.cjs.development.js +2 -4
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +2 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +1 -1
- package/src/components/Shortcuts/ShortcutsSetter.tsx +0 -6
- package/src/stories/ItemContainer.stories.tsx +3 -3
package/package.json
CHANGED
|
@@ -309,7 +309,7 @@ export const ItemSlot: React.FC<IProps> = observer(
|
|
|
309
309
|
onDrag={onDraggableProgress}
|
|
310
310
|
position={dragPosition}
|
|
311
311
|
cancel=".empty-slot"
|
|
312
|
-
bounds=".item-container-body"
|
|
312
|
+
bounds=".item-container-body, .equipment-container-body"
|
|
313
313
|
>
|
|
314
314
|
<ItemContainer
|
|
315
315
|
ref={dragContainer}
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
} from '@rpg-engine/shared';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import styled from 'styled-components';
|
|
10
|
-
import { UI_BREAKPOINT_MOBILE } from '../../constants/uiBreakpoints';
|
|
11
10
|
import { uiColors } from '../../constants/uiColors';
|
|
12
11
|
import { SpriteFromAtlas } from '../shared/SpriteFromAtlas';
|
|
13
12
|
|
|
@@ -116,11 +115,6 @@ const Container = styled.div`
|
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
width: 100%;
|
|
119
|
-
|
|
120
|
-
/*MOBILE ONLY CODE*/
|
|
121
|
-
@media screen and (max-width: ${UI_BREAKPOINT_MOBILE}) {
|
|
122
|
-
max-height: 80px;
|
|
123
|
-
}
|
|
124
118
|
`;
|
|
125
119
|
|
|
126
120
|
const Shortcut = styled.button<{ isBeingSet?: boolean }>`
|
|
@@ -65,7 +65,7 @@ const Template: Story<IItemContainerProps & ITemplateProps> = ({
|
|
|
65
65
|
itemContainer: mock,
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
const
|
|
68
|
+
const CoreItemContainer = () => (
|
|
69
69
|
<ItemContainer
|
|
70
70
|
itemContainer={itemContainer}
|
|
71
71
|
onClose={() => console.log('closing item container')}
|
|
@@ -147,10 +147,10 @@ const Template: Story<IItemContainerProps & ITemplateProps> = ({
|
|
|
147
147
|
centralize={false}
|
|
148
148
|
breakPoint={UI_BREAKPOINT_SMALL_LAPTOP}
|
|
149
149
|
>
|
|
150
|
-
|
|
150
|
+
<CoreItemContainer />
|
|
151
151
|
</ScalableContainer>
|
|
152
152
|
) : (
|
|
153
|
-
|
|
153
|
+
<CoreItemContainer />
|
|
154
154
|
)}
|
|
155
155
|
</RPGUIRoot>
|
|
156
156
|
);
|