@saooti/octopus-sdk 41.1.12 → 41.1.14

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 41.1.14 (18/12/2025)
4
+
5
+ **Misc**
6
+
7
+ - Ajustements affichage pour smartphones
8
+
9
+ ## 41.1.13 (18/12/2025)
10
+
11
+ **Misc**
12
+
13
+ - Ajustements affichage pour smartphones
14
+
3
15
  ## 41.1.12 (18/12/2025)
4
16
 
5
17
  **Feature**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "41.1.12",
3
+ "version": "41.1.14",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -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>
@@ -73,9 +73,10 @@ import ClassicImageBanner from '../../misc/ClassicImageBanner.vue';
73
73
  import { useI18n } from "vue-i18n";
74
74
 
75
75
  //Props
76
- const props = defineProps({
77
- emission: { default: () => ({}), type: Object as () => Emission },
78
- });
76
+ const props = defineProps<{
77
+ /** The emission to display */
78
+ emission: Emission;
79
+ }>();
79
80
 
80
81
  //Data
81
82
  const activeEmission = ref(true);
@@ -135,5 +136,23 @@ async function hasPodcast(): Promise<void> {
135
136
  <style scoped lang="scss">
136
137
  article {
137
138
  max-height: 254px; // Image size + a few pixels for border
139
+
140
+ // Adjust display for small screens
141
+ @media (width <= 960px) {
142
+ max-height: 500px;
143
+
144
+ a {
145
+ flex-direction: column;
146
+ flex-wrap: nowrap;
147
+ }
148
+
149
+ .element-name {
150
+ font-size: 1rem;
151
+ }
152
+
153
+ .element-description {
154
+ font-size: 0.7rem;
155
+ }
156
+ }
138
157
  }
139
- </style>
158
+ </style>
@@ -20,6 +20,7 @@
20
20
  >
21
21
  <template #after-image>
22
22
  <PodcastPlayButton
23
+ v-if="!isPhone"
23
24
  :podcast="item"
24
25
  :hide-play="false"
25
26
  :show-processing="false"
@@ -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
- return props.vertical ? '396' : '250';
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