@rpg-engine/long-bow 0.5.80 → 0.5.82
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 +8 -5
- 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 +8 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DraggableContainer.tsx +2 -0
- package/src/components/Item/Inventory/ItemContainer.tsx +7 -3
- package/src/components/Shortcuts/ShortcutsSetter.tsx +1 -0
- package/src/mocks/itemContainer.mocks.ts +6 -1
package/package.json
CHANGED
|
@@ -280,12 +280,16 @@ const ItemsContainer = styled.div<IItemsContainerProps>`
|
|
|
280
280
|
flex-wrap: wrap;
|
|
281
281
|
max-height: ${({ isFullScreen }) =>
|
|
282
282
|
isFullScreen
|
|
283
|
-
?
|
|
283
|
+
? undefined
|
|
284
284
|
: '270px'}; // Adjust the max-height based on the prop
|
|
285
|
-
overflow-y: ${({ isScrollable }) => (isScrollable ? '
|
|
285
|
+
overflow-y: ${({ isScrollable }) => (isScrollable ? 'auto' : 'hidden')};
|
|
286
286
|
overflow-x: hidden;
|
|
287
287
|
width: ${({ isFullScreen }) =>
|
|
288
288
|
isFullScreen ? '100vw' : '415px'}; // Adjust the width based on the prop
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
max-height: ${({ isFullScreen }) => isFullScreen && '60%'};
|
|
291
|
+
|
|
292
|
+
@media screen and (max-height: 350px) {
|
|
293
|
+
max-height: ${({ isFullScreen }) => isFullScreen && '50%'};
|
|
294
|
+
}
|
|
291
295
|
`;
|
|
@@ -586,7 +586,7 @@ export const itemContainerMock = (
|
|
|
586
586
|
_id: '629ba0b6fe3f43002f58f23b',
|
|
587
587
|
name: 'Item Container',
|
|
588
588
|
owner: '629ba0b6fe3f43002f58f23b',
|
|
589
|
-
slotQty:
|
|
589
|
+
slotQty: 40,
|
|
590
590
|
slots: {
|
|
591
591
|
0: items[0],
|
|
592
592
|
1: items[1],
|
|
@@ -604,6 +604,11 @@ export const itemContainerMock = (
|
|
|
604
604
|
13: items[13],
|
|
605
605
|
14: items[14],
|
|
606
606
|
15: items[15],
|
|
607
|
+
16: items[16],
|
|
608
|
+
17: items[17],
|
|
609
|
+
18: items[18],
|
|
610
|
+
19: items[19],
|
|
611
|
+
20: items[20],
|
|
607
612
|
//remaining slots are considered null by default
|
|
608
613
|
},
|
|
609
614
|
allowedItemTypes: [],
|