@open-slot-ui/pixi 0.11.0 → 0.11.1

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/index.cjs CHANGED
@@ -4399,7 +4399,7 @@ function mountBuyFeatureModal(_app, hud, features, opts = {}) {
4399
4399
  const layout = () => {
4400
4400
  const vw = window.innerWidth;
4401
4401
  const vh = window.innerHeight;
4402
- const cols = vh <= 540 || vw >= 900 ? Math.min(4, list.length) : Math.min(2, list.length);
4402
+ const cols = vw >= 720 && (vw >= 900 || vh <= 540) ? Math.min(4, list.length) : Math.min(2, list.length);
4403
4403
  cardsEl.style.gridTemplateColumns = `repeat(${cols}, 1fr)`;
4404
4404
  const fitW = Math.min(vw * 0.96, cols >= 4 ? 1180 : cols === 1 ? 380 : 760);
4405
4405
  fitEl.style.width = `${fitW}px`;
@@ -4416,7 +4416,8 @@ function mountBuyFeatureModal(_app, hud, features, opts = {}) {
4416
4416
  cardsEl.innerHTML = list.map((f) => {
4417
4417
  const active = boosts.has(f.id);
4418
4418
  const buyBlocked = f.variant === "buy" && blocksBuy && boosts.size > 0;
4419
- const price = f.variant === "buy" ? money(f.cost * bet, cur) : `+${money(f.cost * bet, cur)}`;
4419
+ const perSpin = (f.variant === "buy" ? f.cost : 1 + f.cost) * bet;
4420
+ const price = money(perSpin, cur);
4420
4421
  const label = f.variant === "buy" ? tr("Buy") : active ? tr("Activated") : tr("Activate");
4421
4422
  const cls = `bfm-action bfm-action--${f.variant}${active ? " is-active" : ""}${buyBlocked ? " is-blocked" : ""}`;
4422
4423
  const img = f.image ? ` style="background-image:url('${f.image}')"` : "";