@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.5.78",
3
+ "version": "0.5.80",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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 coreItemContainer = (
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
- {coreItemContainer}
150
+ <CoreItemContainer />
151
151
  </ScalableContainer>
152
152
  ) : (
153
- coreItemContainer
153
+ <CoreItemContainer />
154
154
  )}
155
155
  </RPGUIRoot>
156
156
  );