itube-specs 0.0.983 → 0.0.984

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.
@@ -2,7 +2,7 @@
2
2
  <template>
3
3
  <div
4
4
  :class="{
5
- '--model': type === 'model',
5
+ '--model': isModel,
6
6
  }"
7
7
  class="info-main"
8
8
  >
@@ -13,8 +13,8 @@
13
13
  class="info-main__content"
14
14
  >
15
15
  <UiImg
16
- v-if="card.img"
17
- :src="currentImage"
16
+ v-if="card.img || isModel"
17
+ :src="currentImage || placeholder"
18
18
  :avif-src="currentAvifSrc"
19
19
  :alt="title"
20
20
  :sizes="IMG_SIZES"
@@ -132,7 +132,7 @@
132
132
  #card
133
133
  >
134
134
  <CardModelMini
135
- v-if="type === 'model'"
135
+ v-if="isModel"
136
136
  :card="shareModelCard"
137
137
  />
138
138
  <CardChannelMini
@@ -176,6 +176,8 @@ const groupedParameters = computed<IGroupedParameter[]>(() =>
176
176
  groupParametersByGroup(props.card.parameters ?? []),
177
177
  );
178
178
 
179
+ const isModel = computed(() => props.type === 'model');
180
+
179
181
  const featureFlags = useRuntimeConfig().public.featureFlags;
180
182
 
181
183
  const isShareOpen = ref(false);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.983",
4
+ "version": "0.0.984",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {