@saooti/octopus-sdk 41.1.13 → 41.1.15
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/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/src/components/display/emission/EmissionInlineList.vue +8 -2
- package/src/components/display/emission/EmissionItem.vue +23 -3
- package/src/components/display/podcasts/PodcastPresentationList.vue +1 -0
- package/src/components/layout/PresentationItem.vue +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 41.1.15 (19/12/2025)
|
|
4
|
+
|
|
5
|
+
**Fixes**
|
|
6
|
+
|
|
7
|
+
- Correction de l'affichage de certaines émission sur iPhone
|
|
8
|
+
|
|
9
|
+
**Misc**
|
|
10
|
+
|
|
11
|
+
- Troncature des descriptions d'émissions sur mobile
|
|
12
|
+
|
|
13
|
+
## 41.1.14 (18/12/2025)
|
|
14
|
+
|
|
15
|
+
**Misc**
|
|
16
|
+
|
|
17
|
+
- Ajustements affichage pour smartphones
|
|
18
|
+
|
|
3
19
|
## 41.1.13 (18/12/2025)
|
|
4
20
|
|
|
5
21
|
**Misc**
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<EmissionPresentationItem
|
|
13
13
|
v-if="emissionDisplay === 'simple'"
|
|
14
14
|
:emission="option"
|
|
15
|
-
class="mx-2"
|
|
15
|
+
class="mx-2 inline-list-element"
|
|
16
16
|
is-description
|
|
17
17
|
:is-vertical="emissionVertical"
|
|
18
18
|
/>
|
|
@@ -162,7 +162,7 @@ function mainRubriquage(emission: Emission): string {
|
|
|
162
162
|
}
|
|
163
163
|
</script>
|
|
164
164
|
|
|
165
|
-
<style lang="scss">
|
|
165
|
+
<style scoped lang="scss">
|
|
166
166
|
.octopus-app {
|
|
167
167
|
.list-episode {
|
|
168
168
|
padding: 2rem 0 1rem !important;
|
|
@@ -176,4 +176,10 @@ function mainRubriquage(emission: Emission): string {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
|
|
180
|
+
.inline-list-element {
|
|
181
|
+
@media (width <= 960px) {
|
|
182
|
+
height: 334px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
179
185
|
</style>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<!-- eslint-disable vue/no-v-html -->
|
|
39
39
|
<div
|
|
40
40
|
ref="descriptionEmission"
|
|
41
|
-
v-html="
|
|
41
|
+
v-html="description"
|
|
42
42
|
/>
|
|
43
43
|
<!-- eslint-enable -->
|
|
44
44
|
</div>
|
|
@@ -71,6 +71,7 @@ import { ListClassicReturn } from "@/stores/class/general/listReturn";
|
|
|
71
71
|
import ClassicImageBanner from '../../misc/ClassicImageBanner.vue';
|
|
72
72
|
|
|
73
73
|
import { useI18n } from "vue-i18n";
|
|
74
|
+
import { useResizePhone } from "../../composable/useResizePhone";
|
|
74
75
|
|
|
75
76
|
//Props
|
|
76
77
|
const props = defineProps<{
|
|
@@ -111,6 +112,25 @@ onMounted(()=>{
|
|
|
111
112
|
}
|
|
112
113
|
})
|
|
113
114
|
|
|
115
|
+
const { isPhone } = useResizePhone();
|
|
116
|
+
const description = computed((): string => {
|
|
117
|
+
let str = props.emission.description;
|
|
118
|
+
if (!str) {
|
|
119
|
+
return '';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Truncate description on phones
|
|
123
|
+
if (isPhone.value === true) {
|
|
124
|
+
const pattern = /^(.+?<\/p>)/;
|
|
125
|
+
const matches = str.match(pattern);
|
|
126
|
+
if (matches && matches.length === 2) {
|
|
127
|
+
str = matches[1];
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return urlify(str);
|
|
132
|
+
});
|
|
133
|
+
|
|
114
134
|
//Methods
|
|
115
135
|
function urlify(text:string|undefined){
|
|
116
136
|
return displayHelper.urlify(text);
|
|
@@ -142,8 +162,8 @@ article {
|
|
|
142
162
|
max-height: 500px;
|
|
143
163
|
|
|
144
164
|
a {
|
|
145
|
-
flex-direction: column;
|
|
146
|
-
flex-wrap: nowrap;
|
|
165
|
+
flex-direction: column !important;
|
|
166
|
+
flex-wrap: nowrap !important;
|
|
147
167
|
}
|
|
148
168
|
|
|
149
169
|
.element-name {
|
|
@@ -82,7 +82,13 @@ const { useProxyImageUrl } = useImageProxy();
|
|
|
82
82
|
// Calcul de la taille de l'image
|
|
83
83
|
const tailleImage = computed(() => {
|
|
84
84
|
// L'élément fait 400 de large à la verticale, mais on prend en compte les bordures
|
|
85
|
-
|
|
85
|
+
if (props.vertical) {
|
|
86
|
+
return '396';
|
|
87
|
+
} else if (isPhone.value) {
|
|
88
|
+
return '246';
|
|
89
|
+
} else {
|
|
90
|
+
return '250';
|
|
91
|
+
}
|
|
86
92
|
});
|
|
87
93
|
|
|
88
94
|
//Watch
|