@saooti/octopus-sdk 36.0.3 → 36.0.4
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
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<div
|
|
55
55
|
v-for="p in podcasts"
|
|
56
56
|
:key="p.podcastId"
|
|
57
|
-
class="border-top emission-item-border-color p-2
|
|
57
|
+
class="border-top emission-item-border-color p-2 d-flex flex-column"
|
|
58
58
|
>
|
|
59
59
|
<router-link
|
|
60
60
|
v-if="isProgressBar"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
<!-- eslint-enable -->
|
|
94
94
|
</div>
|
|
95
95
|
</router-link>
|
|
96
|
-
<PodcastPlayBar
|
|
96
|
+
<PodcastPlayBar :podcast-id="p.podcastId" :duration="p.duration" />
|
|
97
97
|
</div>
|
|
98
98
|
<button
|
|
99
99
|
v-if="
|
|
@@ -233,8 +233,8 @@ export default defineComponent({
|
|
|
233
233
|
this.podcasts = data.result;
|
|
234
234
|
this.$nextTick(() => {
|
|
235
235
|
for (let index = 0, len = this.podcasts.length; index < len; index++) {
|
|
236
|
-
const podcastDesc = (this.$refs['descriptionPodcast'+this.podcasts[index].podcastId] as Array<HTMLElement>)[0];
|
|
237
|
-
const podcastDescContainer = (this.$refs['descriptionPodcastContainer'+this.podcasts[index].podcastId] as Array<HTMLElement>)[0];
|
|
236
|
+
const podcastDesc = (this.$refs['descriptionPodcast'+this.podcasts[index].podcastId] as Array<HTMLElement>)?.[0] ?? null;
|
|
237
|
+
const podcastDescContainer = (this.$refs['descriptionPodcastContainer'+this.podcasts[index].podcastId] as Array<HTMLElement>)?.[0] ?? null;
|
|
238
238
|
if (
|
|
239
239
|
null !== podcastDesc && null !== podcastDescContainer &&
|
|
240
240
|
podcastDesc.clientHeight > podcastDescContainer.clientHeight
|
|
@@ -258,6 +258,7 @@ export default defineComponent({
|
|
|
258
258
|
width: 100%;
|
|
259
259
|
max-width: $octopus-item-size;
|
|
260
260
|
height: min-content;
|
|
261
|
+
border: 2px solid #eee;
|
|
261
262
|
border-radius: $octopus-borderradius;
|
|
262
263
|
overflow: hidden;
|
|
263
264
|
.emission-item-border-color {
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
|
-
<div class="d-flex flex-column me-2">
|
|
23
|
+
<div class="d-flex flex-column me-2" v-if="podcast || emission ||playlist">
|
|
24
24
|
<div class="h4 mb-2">{{$t('Newsletter')}}</div>
|
|
25
25
|
<div class="d-flex align-items-center justify-content-center">
|
|
26
26
|
<button
|
|
27
|
-
v-if="podcast || emission ||playlist"
|
|
28
27
|
:class="getClass()"
|
|
29
28
|
class="saooti-newsletter"
|
|
30
29
|
:title="$t('Share newsletter')"
|