@everymatrix/casino-game-thumbnail 1.29.6 → 1.29.8

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/casino-game-thumbnail",
3
- "version": "1.29.6",
3
+ "version": "1.29.8",
4
4
  "main": "dist/casino-game-thumbnail.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "a67714e03295f6cdb76990ce33c8baeec7819b9f"
38
+ "gitHead": "a6ce52ac3c8209814f7d801c927c7d2d9224b2ae"
39
39
  }
@@ -77,8 +77,6 @@
77
77
  let roulletteref:any;
78
78
  let dealername:string;
79
79
  let numberofplayers:number;
80
-
81
-
82
80
  const BLACKJACK = 'blackjack';
83
81
  const ROULETTE = 'roulette';
84
82
  const DOUBLE_ROULETTE = 'doubleballroulette';
@@ -603,80 +601,82 @@
603
601
  { gamevendor ? gamevendor : '-'}
604
602
  </span>
605
603
  </div>
606
- {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
607
- <div class="FavIconContainer" on:click="{() => toggleFavoriteGame(gameid)}">
608
- <svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481">
609
- <path style="fill: var(--emfe-w-color-white, #FFFFFF);" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"/>
610
- </svg>
611
- </div>
612
- {:else if isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
613
- <div class="FavIconContainer">
614
- <svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481">
615
- <path style="fill: var(--emfe-w-color-white, #FFFFFF);" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"/>
616
- </svg>
617
- </div>
618
- {/if}
619
- <div class="GameExtraInfo">
620
- {#if gameisnew}
621
- <span class="GameExtraInfoLabel NewGameTag">{$_('new')}</span>
622
- {/if}
623
- {#if gametag}
624
- <span class="GameExtraInfoLabel PopularGameTag">{gametag}</span>
625
- {/if}
626
- {#if livegamedata}
627
- {#if !isopen && starttime && timeformat}
628
- <div class="GameProp LiveProps">
629
- <div class="ClosedGame">
630
- {$_('opens')}
631
- <span>
632
- {moment.utc(starttime).local().format(timeformat)}
633
- </span>
634
- </div>
635
- {@html renderDealerName(dealername)}
636
- {@html renderBetLimits(min, max, currencySymbol)}
637
- </div>
604
+ <div class="GameExtraInfoContainer">
605
+ <div class="GameExtraInfo">
606
+ {#if gameisnew}
607
+ <span class="GameExtraInfoLabel NewGameTag">{$_('new')}</span>
638
608
  {/if}
639
- {#if isopen && displaytype && displaytype === BLACKJACK}
640
- <div class="GameProp LiveProps BlackjackDisplay" part="GameProp LiveProps BlackjackDisplay">
641
- <div class="LiveIcons">
642
- {#if istablefull}
643
- <span class="FullTable">
644
- {$_('full')}
609
+ {#if gametag}
610
+ <span class="GameExtraInfoLabel PopularGameTag">{gametag}</span>
611
+ {/if}
612
+ {#if livegamedata}
613
+ {#if !isopen && starttime && timeformat}
614
+ <div class="GameProp LiveProps">
615
+ <div class="ClosedGame">
616
+ {$_('opens')}
617
+ <span>
618
+ {moment.utc(starttime).local().format(timeformat)}
645
619
  </span>
646
- {:else}
647
- {#each seats as seatData}
648
- <span class={contains(currentoccupiedseats, seatData.toString()) ? 'ClosedSeat' : 'OpenSeat'}>
649
- <svg xmlns="http://www.w3.org/2000/svg" width="13" height="14" viewBox="0 0 13 14">
650
- <path d="M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"/>
651
- <path d="M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"/>
652
- </svg>
620
+ </div>
621
+ {@html renderDealerName(dealername)}
622
+ {@html renderBetLimits(min, max, currencySymbol)}
623
+ </div>
624
+ {/if}
625
+ {#if isopen && displaytype && displaytype === BLACKJACK}
626
+ <div class="GameProp LiveProps BlackjackDisplay" part="GameProp LiveProps BlackjackDisplay">
627
+ <div class="LiveIcons">
628
+ {#if istablefull}
629
+ <span class="FullTable">
630
+ {$_('full')}
653
631
  </span>
654
- {/each}
655
- {/if}
632
+ {:else}
633
+ {#each seats as seatData}
634
+ <span class={contains(currentoccupiedseats, seatData.toString()) ? 'ClosedSeat' : 'OpenSeat'}>
635
+ <svg xmlns="http://www.w3.org/2000/svg" width="13" height="14" viewBox="0 0 13 14">
636
+ <path d="M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"/>
637
+ <path d="M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"/>
638
+ </svg>
639
+ </span>
640
+ {/each}
641
+ {/if}
642
+ </div>
643
+ {@html renderDealerName(dealername)}
644
+ {@html renderBetLimits(min, max, currencySymbol)}
656
645
  </div>
657
- {@html renderDealerName(dealername)}
658
- {@html renderBetLimits(min, max, currencySymbol)}
659
- </div>
660
- {:else if isopen && displaytype && displaytype === ROULETTE}
661
- <div class="{roulettecontainerclassname}">
662
- <div class="LiveIcons" bind:this={roulletteref}>
663
- {#each new Array(numberofdisplayedresults) as garbage, i}
664
- {#if roulleteresults && roulleteresults[i]}
665
- {#if isdouble}
666
- <div class="Double">
667
- {@html renderSpan(`LatestResult ${i === 0 ? 'First' : ''}`, `first${i}${roulleteresults[i][0]}`, roulleteresults[i][0], colorsourcearray[roulleteresults[i][0]])}
668
- {@html renderSpan(`LatestResult ${i === 0 ? 'First' : ''}`, `second${i}${roulleteresults[i][1]}`, roulleteresults[i][1], colorsourcearray[roulleteresults[i][1]])}
669
- </div>
670
- {:else}
671
- {@html renderSpan(`LatestResult ${i === 0 ? 'First' : ''}`, i, roulleteresults[i], colorsourcearray[roulleteresults[i]])}
646
+ {:else if isopen && displaytype && displaytype === ROULETTE}
647
+ <div class="{roulettecontainerclassname}">
648
+ <div class="LiveIcons" bind:this={roulletteref}>
649
+ {#each new Array(numberofdisplayedresults) as garbage, i}
650
+ {#if roulleteresults && roulleteresults[i]}
651
+ {#if isdouble}
652
+ <div class="Double">
653
+ {@html renderSpan(`LatestResult ${i === 0 ? 'First' : ''}`, `first${i}${roulleteresults[i][0]}`, roulleteresults[i][0], colorsourcearray[roulleteresults[i][0]])}
654
+ {@html renderSpan(`LatestResult ${i === 0 ? 'First' : ''}`, `second${i}${roulleteresults[i][1]}`, roulleteresults[i][1], colorsourcearray[roulleteresults[i][1]])}
655
+ </div>
656
+ {:else}
657
+ {@html renderSpan(`LatestResult ${i === 0 ? 'First' : ''}`, i, roulleteresults[i], colorsourcearray[roulleteresults[i]])}
658
+ {/if}
672
659
  {/if}
673
- {/if}
674
- {/each}
660
+ {/each}
661
+ </div>
662
+ {@html renderDealerName(dealername)}
663
+ {@html renderBetLimits(min, max, currencySymbol)}
675
664
  </div>
676
- {@html renderDealerName(dealername)}
677
- {@html renderBetLimits(min, max, currencySymbol)}
678
- </div>
665
+ {/if}
679
666
  {/if}
667
+ </div>
668
+ {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
669
+ <div class="FavIconContainer" on:click="{() => toggleFavoriteGame(gameid)}">
670
+ <svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481">
671
+ <path style="fill: var(--emfe-w-color-white, #FFFFFF);" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"/>
672
+ </svg>
673
+ </div>
674
+ {:else if isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
675
+ <div class="FavIconContainer">
676
+ <svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481">
677
+ <path style="fill: var(--emfe-w-color-white, #FFFFFF);" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"/>
678
+ </svg>
679
+ </div>
680
680
  {/if}
681
681
  </div>
682
682
  </div>
@@ -700,11 +700,9 @@
700
700
  height: 100%;
701
701
  position: relative;
702
702
  }
703
-
704
703
  .GameContainer.WithGameName {
705
704
  padding-bottom: 20px;
706
705
  }
707
-
708
706
  .GameInnerContainer {
709
707
  position: relative;
710
708
  width: 100%;
@@ -732,6 +730,7 @@
732
730
  left: 0;
733
731
  background: rgba(0, 0, 0, .65);
734
732
  z-index: 15;
733
+ padding: 8px;
735
734
 
736
735
  .GameInfo {
737
736
  display: flex;
@@ -739,13 +738,16 @@
739
738
  height: 100%;
740
739
  flex-direction: column;
741
740
  align-items: center;
742
- justify-content: center;
743
-
741
+ justify-content: space-evenly;
744
742
  &Name {
745
743
  color: white;
746
- margin-bottom: 10px;
747
744
  text-align: center;
748
745
  font-size: 14px;
746
+ display: -webkit-box;
747
+ -webkit-box-orient: vertical;
748
+ -webkit-line-clamp: 2;
749
+ overflow: hidden;
750
+ text-overflow: ellipsis;
749
751
  }
750
752
 
751
753
  &Btn {
@@ -766,22 +768,34 @@
766
768
  }
767
769
 
768
770
  .GameInfoVendor {
769
- display: block;
770
- position: absolute;
771
- bottom: 8px;
772
- right: 8px;
771
+ display: flex;
772
+ justify-content: flex-end;
773
+ align-items: center;
773
774
  color: white;
774
775
  font-size: 12px;
775
776
  font-weight: normal;
776
777
  }
777
778
  }
778
- .GameExtraInfo {
779
- display: block;
779
+
780
+ .GameExtraInfoContainer{
780
781
  position: absolute;
782
+ top: 0;
783
+ left: 0;
784
+ display: flex;
785
+ flex-direction: row;
786
+ justify-content: space-between;
787
+ align-items: center;
788
+ width: 100%;
789
+ height: auto;
790
+ padding: 4px;
791
+ }
792
+
793
+ .GameExtraInfo {
794
+ display: flex;
795
+ justify-content: flex-start;
796
+ align-items: center;
781
797
  width: 100%;
782
798
  height: 100%;
783
- top: 8px;
784
- left: 8px;
785
799
  z-index: 0;
786
800
  &Label {
787
801
  font-size: 11px;
@@ -798,7 +812,9 @@
798
812
  cursor: pointer;
799
813
 
800
814
  .GameInfoWrapper{
801
- display: block;
815
+ display: flex;
816
+ flex-direction: column;
817
+ justify-content: center;
802
818
  }
803
819
 
804
820
  .GameBg {
@@ -821,9 +837,9 @@
821
837
  height: 20px;
822
838
  }
823
839
  .FavIconContainer {
824
- position: absolute;
825
- top: 10px;
826
- right: 10px;
840
+ display: flex;
841
+ justify-content: center;
842
+ align-items: center;
827
843
  cursor: pointer;
828
844
  z-index: 15;
829
845
  }
@@ -1444,55 +1460,35 @@
1444
1460
  }
1445
1461
  }
1446
1462
 
1447
- @container (max-width: 375px) {
1463
+ @container (max-width: 480px) {
1464
+ .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper{
1465
+ gap: 0px;
1466
+ }
1448
1467
 
1449
1468
  .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName {
1450
- margin-bottom: 5px;
1451
1469
  font-size: 12px;
1470
+ margin-top: 4px;
1452
1471
  }
1453
1472
 
1454
1473
  .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn {
1455
- font-size: 14px;
1456
- padding:4px;
1457
- }
1458
-
1459
- .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor {
1460
- font-size: 10px;
1461
- }
1462
- }
1463
-
1464
- @container (max-width: 410px) {
1465
-
1466
- .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName {
1467
1474
  font-size: 12px;
1468
- margin-bottom: 5px;
1475
+ padding:2px;
1469
1476
  }
1470
1477
 
1471
- .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn {
1472
- font-size: 14px;
1473
- padding:4px;
1474
- }
1475
-
1476
1478
  .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor {
1477
- font-size: 10px;
1478
- }
1479
- }
1480
-
1481
- @container (max-width: 480px) {
1479
+ font-size: 8px;
1480
+ }
1482
1481
 
1483
- .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName {
1484
- font-size: 12px;
1485
- margin-bottom: 5px;
1482
+ .CasinoGamesGridSlider .GameInnerContainer .GameExtraInfoContainer .FavoredIcon,
1483
+ .CasinoGamesGridSlider .GameInnerContainer .GameExtraInfoContainer .UnfavoredIcon {
1484
+ width: 14px;
1485
+ height: 14px;
1486
1486
  }
1487
1487
 
1488
- .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn {
1489
- font-size: 14px;
1490
- padding:4px;
1488
+ .CasinoGamesGridSlider .GameInnerContainer .GameExtraInfoContainer .GameExtraInfoLabel {
1489
+ font-size: 8px;
1491
1490
  }
1492
1491
 
1493
- .CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor {
1494
- font-size: 10px;
1495
- }
1496
1492
  }
1497
1493
 
1498
1494
  </style>