@everymatrix/player-active-bonuses 0.0.249 → 0.0.252

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": "@everymatrix/player-active-bonuses",
3
- "version": "0.0.249",
3
+ "version": "0.0.252",
4
4
  "main": "dist/player-active-bonuses",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "38af455e241b6ef7ccabb2367be2be59e6b24352"
39
+ "gitHead": "6824e7c03c551fb8c35921b8846fdbbb49f76169"
40
40
  }
@@ -124,6 +124,7 @@
124
124
  fetch(url.href, optionsClaimBonus)
125
125
  .then((res:any) => {
126
126
  if (res.status == 200) {
127
+ invalidBonusCode = false;
127
128
  getActiveBonuses(0);
128
129
  window.postMessage({ type: 'WidgetNotification', data: {
129
130
  type: 'success',
@@ -254,9 +255,6 @@
254
255
  {#if bonusModal}
255
256
  <div class="ModalWrapper {isMobile ? 'ModalWrapperMobile' : ''}" part="ModalWrapper {isMobile ? 'ModalWrapperMobile' : ''}">
256
257
  <div class="ModalContent" part="ModalContent">
257
- {#if !isMobile}
258
- <span class="ModalClose" part="ModalClose" on:click={closeBonusModal} />
259
- {/if}
260
258
  <div class="ModalBody" part="ModalBody">
261
259
  <p class="ModalText" part="ModalText">{$_('activeBonuses.forfeitBonus')}</p>
262
260
  <div class="ModalButtons" part="ModalButtons">
@@ -450,40 +448,21 @@
450
448
  display: flex;
451
449
  justify-content: center;
452
450
  align-items: center;
451
+ z-index: 100;
453
452
  .ModalContent {
454
453
  background-color: var(--emfe-w-color-white, #FFFFFF);
455
454
  position: relative;
456
- padding: 80px;
455
+ padding: 30px;
457
456
  border-top: 5px solid var(--emfe-w-color-secondary, #FD2839);
458
457
  border-radius: 5px;
459
- .ModalClose {
460
- position: absolute;
461
- top: 15px;
462
- right: 15px;
463
- width: 36px;
464
- height: 36px;
465
- cursor: pointer;
466
- &:before, &:after {
467
- content: '';
468
- position: absolute;
469
- top: 16px;
470
- left: -2px;
471
- width: 40px;
472
- height: 4px;
473
- background-color: var(--emfe-w-color-secondary, #FD2839);
474
- transform: rotate(45deg);
475
- }
476
- &:after {
477
- transform: rotate(-45deg);
478
- }
479
- }
480
458
  }
481
459
  .ModalBody {
482
460
  background-color: var(--emfe-w-color-gray-50, #F9F8F8);
483
- padding: 30px 60px;
461
+ padding: 30px;
484
462
  text-align: center;
485
463
  .ModalText {
486
- font-size: 26px;
464
+ font-size: 22px;
465
+ margin-bottom: 40px;
487
466
  }
488
467
  .ModalButtons {
489
468
  display: flex;
@@ -495,9 +474,9 @@
495
474
  color: var(--emfe-w-color-gray-300, #58586B);
496
475
  cursor: pointer;
497
476
  border-radius: 5px;
498
- width: 330px;
499
- height: 80px;
500
- font-size: 22px;
477
+ width: 200px;
478
+ height: 50px;
479
+ font-size: 16px;
501
480
  text-transform: uppercase;
502
481
  text-align: center;
503
482
  transition-duration: 0.3s;