@energy8platform/platform-core 0.26.0 → 0.26.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.js +24 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +24 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/shell.cjs.js +24 -15
- package/dist/shell.cjs.js.map +1 -1
- package/dist/shell.esm.js +24 -15
- package/dist/shell.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/shell/components/BuyBonus.ts +3 -0
- package/src/shell/shell.css.ts +20 -14
- package/src/shell/version.ts +1 -1
package/dist/shell.esm.js
CHANGED
|
@@ -641,15 +641,19 @@ const SHELL_CSS = SHELL_FONT_CSS + `
|
|
|
641
641
|
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-ov-body { max-width:none; padding:clamp(6px,2.5cqh,16px) clamp(12px,3vw,28px); }
|
|
642
642
|
#${SHELL_ROOT_ID} .ge-bb-grid { display:flex; gap:14px; justify-content:safe center; overflow-x:auto; overflow-y:hidden; padding-bottom:6px;
|
|
643
643
|
scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
|
|
644
|
-
/* the one knob that scales the whole card
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
644
|
+
/* the one knob that scales the whole card (its whole layout is em-relative). It is the SMALLER of two
|
|
645
|
+
fits, so the card is always fully visible:
|
|
646
|
+
• 3.4cqh — height: the card stays inside the band between the header and the bet footer (cqh
|
|
647
|
+
measures the overlay popout frame, not the browser window);
|
|
648
|
+
• 84cqw / (N*18) — width: the N cards (each 18em) fit the frame width side-by-side instead of
|
|
649
|
+
overflowing into an X-scroll. --ge-bb-n is the live card count, set in BuyBonus.ts.
|
|
650
|
+
Floor is deliberately tiny: on a 400×225 popout a fully visible card beats a bigger clipped one. */
|
|
648
651
|
#${SHELL_ROOT_ID} .ge-bb-grid .ge-bonus-card { flex:0 0 18em; scroll-snap-align:start;
|
|
649
|
-
font-size:clamp(4px, 3.4cqh, 12px); }
|
|
650
|
-
/* mobile: vertical stack at a fixed, readable size — scroll the list
|
|
652
|
+
font-size:clamp(4px, min(3.4cqh, calc(84cqw / (var(--ge-bb-n,3) * 18))), 12px); }
|
|
653
|
+
/* mobile: vertical stack at a fixed, readable size — scroll the list; only shrink if the card would
|
|
654
|
+
be wider than the frame (very narrow viewport), so it never overflows horizontally. */
|
|
651
655
|
#${SHELL_ROOT_ID}.ge-mobile .ge-bb-grid { display:flex; flex-direction:column; gap:14px; overflow:visible; }
|
|
652
|
-
#${SHELL_ROOT_ID}.ge-mobile .ge-bb-grid .ge-bonus-card { flex:0 0 auto; font-size:12px; }
|
|
656
|
+
#${SHELL_ROOT_ID}.ge-mobile .ge-bb-grid .ge-bonus-card { flex:0 0 auto; font-size:min(12px, calc(92cqw / 18)); }
|
|
653
657
|
#${SHELL_ROOT_ID} .ge-bonus-card { display:flex; flex-direction:column; border-radius:1.4em; overflow:hidden;
|
|
654
658
|
background:var(--shell-plaque-glass); border:1px solid var(--shell-plaque-line); color:#fff; text-align:center;
|
|
655
659
|
pointer-events:auto; cursor:pointer; transition:box-shadow .12s ease, background .12s ease; }
|
|
@@ -712,13 +716,15 @@ const SHELL_CSS = SHELL_FONT_CSS + `
|
|
|
712
716
|
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-ov-spacer { width:clamp(24px,7cqh,32px); }
|
|
713
717
|
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-ov-nav { width:clamp(24px,7cqh,32px); height:clamp(24px,7cqh,32px);
|
|
714
718
|
font-size:clamp(14px,4cqh,18px); border-radius:clamp(7px,2cqh,9px); }
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-
|
|
718
|
-
|
|
719
|
-
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-
|
|
720
|
-
|
|
721
|
-
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betval
|
|
719
|
+
/* the bet pill read too large next to the shrunk cards — size it ~0.8× across the board (the floors
|
|
720
|
+
stay readable; the maxima are what dominate on Popout L / wide frames). */
|
|
721
|
+
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betbar { padding:clamp(2px,.75cqh,3px); }
|
|
722
|
+
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betpill { padding:clamp(2px,.55cqh,3px) clamp(3px,.9cqh,4px); }
|
|
723
|
+
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betstep { width:clamp(20px,5.7cqh,26px); height:clamp(20px,5.7cqh,26px);
|
|
724
|
+
font-size:clamp(12px,3.5cqh,16px); }
|
|
725
|
+
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betval { min-width:clamp(50px,14cqh,66px); }
|
|
726
|
+
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betval b { font-size:clamp(9px,2.5cqh,11px); }
|
|
727
|
+
#${SHELL_ROOT_ID} [data-ge="buybonus-overlay"] .ge-bb-betval span { font-size:clamp(5px,1.25cqh,6px); }
|
|
722
728
|
|
|
723
729
|
/* ═══ base/wide plaque bar — grouped dark + glass panels (reference-style) ═══ */
|
|
724
730
|
#${SHELL_ROOT_ID} .ge-zone-plaques { gap:0; } /* panels connect; buttons overlap */
|
|
@@ -1291,7 +1297,7 @@ function openSettingsModal(shell) {
|
|
|
1291
1297
|
|
|
1292
1298
|
// AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
|
|
1293
1299
|
/** The @energy8platform/platform-core package version, stamped at build time. */
|
|
1294
|
-
const PACKAGE_VERSION = '0.26.
|
|
1300
|
+
const PACKAGE_VERSION = '0.26.1';
|
|
1295
1301
|
|
|
1296
1302
|
/** Default order key for the auto-injected hotkeys section: just after `controls` (-1). */
|
|
1297
1303
|
const HOTKEYS_DEFAULT_ORDER = -0.5;
|
|
@@ -1716,6 +1722,9 @@ function openBuyBonusOverlay(shell) {
|
|
|
1716
1722
|
body.innerHTML = '';
|
|
1717
1723
|
const grid = document.createElement('div');
|
|
1718
1724
|
grid.className = 'ge-bb-grid';
|
|
1725
|
+
// Card count drives the width-fit clamp in CSS (each card is 18em; N cards must fit the frame
|
|
1726
|
+
// width), so the row scales to the available width instead of overflowing into an X-scroll.
|
|
1727
|
+
grid.style.setProperty('--ge-bb-n', String(bonuses.length));
|
|
1719
1728
|
const affordable = [];
|
|
1720
1729
|
for (const bonus of bonuses) {
|
|
1721
1730
|
const card = buildCard(shell, bonus, root, st);
|