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/dist/toggle-components-library.common.js +90 -84
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +90 -84
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +1 -1
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/components/cards/ToggleRewardsCard.vue +1 -1
- package/src/components/carousel/ToggleCarousel.vue +9 -3
- package/src/sass/includes/_as_cards.scss +7 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
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.
|
|
83
|
-
|
|
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:
|
|
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
|
}
|