@rpg-engine/long-bow 0.5.18 → 0.5.19

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.18",
3
+ "version": "0.5.19",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,6 +13,7 @@ interface IProps {
13
13
  onOutsideClick?: () => void;
14
14
  initialPosition?: IPosition;
15
15
  scale?: number;
16
+ width?: string;
16
17
  }
17
18
 
18
19
  export const SlotsContainer: React.FC<IProps> = ({
@@ -25,6 +26,7 @@ export const SlotsContainer: React.FC<IProps> = ({
25
26
  onOutsideClick,
26
27
  initialPosition,
27
28
  scale,
29
+ width,
28
30
  }) => {
29
31
  return (
30
32
  <DraggableContainer
@@ -35,7 +37,7 @@ export const SlotsContainer: React.FC<IProps> = ({
35
37
  onClose();
36
38
  }
37
39
  }}
38
- width="450px"
40
+ width={width ?? '415px'}
39
41
  cancelDrag=".item-container-body, #shortcuts_list"
40
42
  onPositionChange={({ x, y }) => {
41
43
  if (onPositionChange) {
@@ -218,7 +218,7 @@ const ItemsContainer = styled.div`
218
218
  max-height: 270px;
219
219
  overflow-y: auto;
220
220
  overflow-x: hidden;
221
- width: 450px;
221
+ width: 415px;
222
222
  `;
223
223
 
224
224
  const QuantitySelectorContainer = styled.div`