@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.5.80",
3
+ "version": "0.5.82",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -150,6 +150,8 @@ const Container = styled.div<IContainerProps>`
150
150
  flex-wrap: wrap;
151
151
  image-rendering: pixelated;
152
152
 
153
+ overflow-y: hidden;
154
+
153
155
  ${({ opacity }) =>
154
156
  opacity &&
155
157
  css`
@@ -280,12 +280,16 @@ const ItemsContainer = styled.div<IItemsContainerProps>`
280
280
  flex-wrap: wrap;
281
281
  max-height: ${({ isFullScreen }) =>
282
282
  isFullScreen
283
- ? '100vh'
283
+ ? undefined
284
284
  : '270px'}; // Adjust the max-height based on the prop
285
- overflow-y: ${({ isScrollable }) => (isScrollable ? 'scroll' : 'hidden')};
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
- margin-top: ${({ isFullScreen }) => (isFullScreen ? '1rem' : '0')};
290
+ max-height: ${({ isFullScreen }) => isFullScreen && '60%'};
291
+
292
+ @media screen and (max-height: 350px) {
293
+ max-height: ${({ isFullScreen }) => isFullScreen && '50%'};
294
+ }
291
295
  `;
@@ -161,5 +161,6 @@ const List = styled.div`
161
161
  flex-wrap: wrap;
162
162
 
163
163
  padding: 0.3rem;
164
+
164
165
  padding-bottom: 1rem;
165
166
  `;
@@ -586,7 +586,7 @@ export const itemContainerMock = (
586
586
  _id: '629ba0b6fe3f43002f58f23b',
587
587
  name: 'Item Container',
588
588
  owner: '629ba0b6fe3f43002f58f23b',
589
- slotQty: 20,
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: [],