@everymatrix/lottery-program-wof 1.24.4 → 1.24.7

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/lottery-program-wof",
3
- "version": "1.24.4",
3
+ "version": "1.24.7",
4
4
  "main": "dist/lottery-program-wof.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "6b5a6d6584217df74f6dfeed6858faa39a7f971d"
42
+ "gitHead": "7d07b195e7119200519062f519ff0712a2227c39"
43
43
  }
@@ -17,6 +17,18 @@
17
17
  $: clientstyling && rootContainer && setClientStyling(rootContainer, clientstyling);
18
18
 
19
19
  let tab: Tab = Tab.Program;
20
+
21
+ const onTabClick = (_tab) => {
22
+ switch(_tab){
23
+ case Tab.Program:
24
+ break;
25
+ case Tab.History:
26
+ _postMessage({type: 'wof-private-message-outcomes'})
27
+ break;
28
+ }
29
+
30
+ tab = _tab
31
+ }
20
32
  </script>
21
33
  {#if isshowhistory === 'true'}
22
34
  <section class="TabBar" bind:this={rootContainer}>
@@ -25,21 +37,9 @@
25
37
  <li
26
38
  class:active={_tab === tab}
27
39
  class="TabItem"
40
+ on:click={() => onTabClick(_tab)}
28
41
  >
29
- <span
30
- on:click={() => {
31
- switch(_tab){
32
- case Tab.Program:
33
- break;
34
- case Tab.History:
35
- _postMessage({type: 'wof-private-message-outcomes'})
36
- break;
37
- }
38
-
39
- //@ts-ignore
40
- tab = _tab
41
- }}
42
- >
42
+ <span>
43
43
  {$_(`wof.${_tab}`)}
44
44
  </span>
45
45
  </li>
@@ -87,7 +87,6 @@
87
87
  li {
88
88
  color: #FFFFFF;
89
89
  display: inline-block;
90
- margin-right: 10px;
91
90
  }
92
91
  }
93
92
 
@@ -95,7 +94,7 @@
95
94
  border-bottom: 3px #ccc solid;
96
95
 
97
96
  li {
98
- padding: 6px;
97
+ padding: 6px 10px;
99
98
  cursor: pointer;
100
99
  &.active {
101
100
  border-bottom: 3px #d46666 solid;