toggle-components-library 1.32.0-beta.5 → 1.32.0-beta.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-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.32.0-beta.5",
3
+ "version": "1.32.0-beta.7",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.32.0-beta.5",
3
+ "version": "1.32.0-beta.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,7 +5,7 @@
5
5
  <slot name="toggle-rewards-card-header">{{ reward }}</slot>
6
6
  </div>
7
7
  <div class="toggle-rewards-card-card-body">
8
- <p class="toggle-rewards-card-body-header">Overall voucher performance</p>
8
+ <p class="toggle-rewards-card-body-header">Overall reward performance</p>
9
9
  <div class="toggle-rewards-card-body-stats">
10
10
  <div class="toggle-rewards-card-metrics">
11
11
  <p>Claimed</p>
@@ -78,11 +78,17 @@ export default {
78
78
  directives: {
79
79
  swiper: directive
80
80
  },
81
- mounted() {
82
- this.slidesLength = this.$refs.swiper.swiperInstance.slides.length;
83
- this.onSlideTransition();
81
+ mounted(){
82
+ this.refreshCarousel();
83
+ },
84
+ updated() {
85
+ this.refreshCarousel();
84
86
  },
85
87
  methods: {
88
+ refreshCarousel(){
89
+ this.slidesLength = this.$refs.swiper.swiperInstance.slides.length;
90
+ this.onSlideTransition();
91
+ },
86
92
  onSlideTransition(){
87
93
  // if loop is enabled, don't disable buttons, unless specified in prop
88
94
  const isLoop = this.$refs.swiper.swiperInstance.params.loop;
@@ -23,6 +23,11 @@
23
23
  font-size: 2.2rem;
24
24
  font-weight: 600;
25
25
  margin-top: 20px;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ display: -webkit-box;
29
+ -webkit-line-clamp: 2;
30
+ -webkit-box-orient: vertical;
26
31
  }
27
32
  }
28
33
 
@@ -92,7 +97,7 @@
92
97
  width: 100px;
93
98
  height: 100px;
94
99
  color: white;
95
- font-size: 1.7em;
100
+ font-size: 27px;
96
101
  font-weight: 700;
97
102
  display: flex;
98
103
  justify-content: center;
@@ -154,6 +159,7 @@
154
159
  font-family: $toggle-font-family;
155
160
  font-size: $toggle-font-size-large;
156
161
  font-weight: bold;
162
+ word-wrap: break-word;
157
163
  }
158
164
 
159
165
  }