@rpg-engine/long-bow 0.5.38 → 0.5.39

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.
@@ -15983,6 +15983,7 @@ var QuantitySelectorContainer = /*#__PURE__*/styled.div.withConfig({
15983
15983
  componentId: "sc-1b8cosc-0"
15984
15984
  })(["position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:100;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.5);"]);
15985
15985
 
15986
+ var MIN_SLOTS_FOR_SCROLL = 20;
15986
15987
  var ItemContainer$1 = function ItemContainer(_ref) {
15987
15988
  var itemContainer = _ref.itemContainer,
15988
15989
  onClose = _ref.onClose,
@@ -16138,7 +16139,8 @@ var ItemContainer$1 = function ItemContainer(_ref) {
16138
16139
  atlasJSON: atlasJSON
16139
16140
  }), React__default.createElement(ItemsContainer, {
16140
16141
  className: "item-container-body",
16141
- ref: containerRef
16142
+ ref: containerRef,
16143
+ isScrollable: itemContainer.slotQty > MIN_SLOTS_FOR_SCROLL
16142
16144
  }, onRenderSlots())), quantitySelect.isOpen && React__default.createElement(ItemQuantitySelectorModal, {
16143
16145
  quantitySelect: quantitySelect,
16144
16146
  setQuantitySelect: setQuantitySelect
@@ -16147,7 +16149,10 @@ var ItemContainer$1 = function ItemContainer(_ref) {
16147
16149
  var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
16148
16150
  displayName: "ItemContainer__ItemsContainer",
16149
16151
  componentId: "sc-15y5p9l-0"
16150
- })(["display:flex;justify-content:center;flex-wrap:wrap;max-height:270px;overflow-y:auto;overflow-x:hidden;width:415px;"]);
16152
+ })(["display:flex;justify-content:center;flex-wrap:wrap;max-height:270px;overflow-y:", ";overflow-x:hidden;width:415px;"], function (_ref2) {
16153
+ var isScrollable = _ref2.isScrollable;
16154
+ return isScrollable ? 'scroll' : 'hidden';
16155
+ });
16151
16156
 
16152
16157
  var LeaderboardTable = function LeaderboardTable(props) {
16153
16158
  var items = props.items,