@everymatrix/casino-game-thumbnail 0.0.293 → 0.0.296
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": "0.0.
|
|
3
|
+
"version": "0.0.296",
|
|
4
4
|
"main": "dist/casino-game-thumbnail.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "628a0e30f5160748837a6a7acb4cf44623d87c3d"
|
|
40
40
|
}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
export let gamefunmode:boolean = false;
|
|
25
25
|
export let searchitem:boolean = false;
|
|
26
26
|
export let gamefavorite:boolean = false;
|
|
27
|
+
export let gamecellsize = '';
|
|
27
28
|
export let showfavoredcategory:boolean = false;
|
|
28
29
|
export let showgamename:boolean = false;
|
|
29
30
|
export let currency:string = '';
|
|
@@ -549,7 +550,7 @@
|
|
|
549
550
|
$: gamethumbnail && setOnLoad();
|
|
550
551
|
$: clientstyling && setClientStyling();
|
|
551
552
|
$: favorites && setFavorites();
|
|
552
|
-
$: clientstylingurl && setClientStylingURL();
|
|
553
|
+
$: gamecellsize && clientstylingurl && setClientStylingURL();
|
|
553
554
|
$: endpoint && livelobbyendpoint && setLiveLobbyData();
|
|
554
555
|
$: livegamedata && updateComponent();
|
|
555
556
|
$: roulletteref && roulleteresults && attachAnimations();
|
|
@@ -557,7 +558,7 @@
|
|
|
557
558
|
|
|
558
559
|
<div class={`GameContainer ${extraclassname}`} part={`GameContainer ${extraclassname}`} bind:this={customStylingContainer}>
|
|
559
560
|
<div class="GameInnerContainer { (livegamedata && !isopen && openhours.value) || (livegamedata && istablefull) ? 'GameInnerContainerUnavailable' : ''}" part="GameInnerContainer { (livegamedata && !isopen) || (livegamedata && istablefull) ? 'GameInnerContainerUnavailable' : ''}" on:mouseenter={gameHover} on:mouseleave={gameBlur} on:touchstart={gameTouch} on:touchleave={gameTouchLeave}>
|
|
560
|
-
<img src={gamethumbnail} class=
|
|
561
|
+
<img src={gamethumbnail} class={`GameBg GameBg-${gamecellsize} ${hover ? 'GameContainerHovered' : ''} ${loaded ? 'Loaded' : ''}`} part="GameBg {hover ? 'GameContainerHovered' : ''} {loaded ? 'Loaded' : ''}" alt="" bind:this={image} loading="lazy" />
|
|
561
562
|
<div class="GameInfoWrapper" part="GameInfoWrapper">
|
|
562
563
|
<div class="GameInfo {hover ? 'GameHovered' : ''}" part="GameInfo {hover ? 'GameHovered' : ''}">
|
|
563
564
|
{#if fav}
|
|
@@ -693,8 +694,11 @@
|
|
|
693
694
|
.GameBg {
|
|
694
695
|
width: 100%;
|
|
695
696
|
height: 100%;
|
|
696
|
-
object-fit:
|
|
697
|
+
object-fit: unset;
|
|
697
698
|
transition: all 150ms ease-in-out;
|
|
699
|
+
&.GameBg-1x2,
|
|
700
|
+
&.GameBg-2x1,
|
|
701
|
+
&.GameBg-2x2 { object-fit: cover; }
|
|
698
702
|
}
|
|
699
703
|
|
|
700
704
|
.GameInfoWrapper {
|