@asd20/ui 3.2.554 → 3.2.555
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
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
</slot>
|
|
28
28
|
</div>
|
|
29
|
-
<div v-if="showArrows" class="asd20-swipe__arrows">
|
|
29
|
+
<div v-if="showArrows && childLen > 1" class="asd20-swipe__arrows">
|
|
30
30
|
<button
|
|
31
31
|
v-if="cur > 0"
|
|
32
32
|
class="asd20-swipe__arrows__button-prev"
|
|
@@ -351,7 +351,8 @@ export default {
|
|
|
351
351
|
justify-content: center;
|
|
352
352
|
padding: 0.5rem;
|
|
353
353
|
width: auto;
|
|
354
|
-
background: rgba(255, 255, 255,
|
|
354
|
+
background: rgba(255, 255, 255, 0.6);
|
|
355
|
+
border-radius: 1rem;
|
|
355
356
|
}
|
|
356
357
|
&__item {
|
|
357
358
|
display: inline-block;
|
|
@@ -376,13 +377,14 @@ export default {
|
|
|
376
377
|
position: relative;
|
|
377
378
|
background: none;
|
|
378
379
|
border: 0;
|
|
379
|
-
width:
|
|
380
|
-
height:
|
|
381
|
-
background:
|
|
380
|
+
width: 3rem;
|
|
381
|
+
height: 3rem;
|
|
382
|
+
background: rgba(255, 255, 255, 0.6);
|
|
382
383
|
display: flex;
|
|
383
384
|
justify-content: center;
|
|
384
385
|
align-items: center;
|
|
385
386
|
cursor: pointer;
|
|
387
|
+
border-radius: 50%;
|
|
386
388
|
transition: background 0.1s ease-in;
|
|
387
389
|
&:hover {
|
|
388
390
|
background: rgba(255, 255, 255, 0.8);
|
|
@@ -79,25 +79,23 @@ export default {
|
|
|
79
79
|
computed: {
|
|
80
80
|
imageThumbnails() {
|
|
81
81
|
let images = this.images || []
|
|
82
|
-
return
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}))
|
|
94
|
-
)
|
|
82
|
+
return images
|
|
83
|
+
.filter(i => !i.isCover)
|
|
84
|
+
.map(i => ({
|
|
85
|
+
thumbnailUrl: (
|
|
86
|
+
i.files.find(f => f.name === 'thumbnail-md') || i.files[0]
|
|
87
|
+
).url,
|
|
88
|
+
url: (i.files.find(f => f.name === 'full') || i.files[0]).url,
|
|
89
|
+
alt: i.metadata.alt,
|
|
90
|
+
credits: i.metadata.credits,
|
|
91
|
+
// isCover: i.isCover,
|
|
92
|
+
}))
|
|
95
93
|
},
|
|
96
94
|
},
|
|
97
95
|
|
|
98
96
|
methods: {
|
|
99
97
|
openImage(index) {
|
|
100
|
-
this.selectedIndex = index + 1
|
|
98
|
+
this.imageThumbnails.length > 1 ? this.selectedIndex = index + 1 : this.selectedIndex = index
|
|
101
99
|
this.showSlideshow = true
|
|
102
100
|
},
|
|
103
101
|
truncatedDescription(description) {
|
|
@@ -204,12 +202,13 @@ export default {
|
|
|
204
202
|
.text-overlay {
|
|
205
203
|
position: absolute;
|
|
206
204
|
display: block;
|
|
207
|
-
bottom: space(2);
|
|
205
|
+
bottom: space(2.25);
|
|
208
206
|
color: #fff;
|
|
209
207
|
background: rgba(50, 50, 50, 0.7);
|
|
210
208
|
padding: space(0.5);
|
|
211
209
|
max-width: 80vw;
|
|
212
210
|
text-align: center;
|
|
211
|
+
border-radius: space(2);
|
|
213
212
|
}
|
|
214
213
|
}
|
|
215
214
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"files": [
|
|
78
78
|
{
|
|
79
79
|
"name": "thumbnail-md",
|
|
80
|
-
"url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images
|
|
80
|
+
"url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/all-students-learn-at-high-levels./thumbnail-md/PIES-choice-photo_250x250.jpg"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "full",
|
|
@@ -85,7 +85,8 @@
|
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
87
|
"metadata": {
|
|
88
|
-
"alt": "This is ALT text."
|
|
88
|
+
"alt": "This is ALT text.",
|
|
89
|
+
"credits": "A teacher teaches."
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
],
|