itube-specs 0.0.983 → 0.0.985
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/components/info/main.vue +7 -4
- package/package.json +1 -1
package/components/info/main.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<template>
|
|
3
3
|
<div
|
|
4
4
|
:class="{
|
|
5
|
-
'--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="
|
|
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);
|
|
@@ -294,6 +296,7 @@ const socialItems = computed<ILinkItem[]>(() => {
|
|
|
294
296
|
|
|
295
297
|
.info-main.--model .info-main__content {
|
|
296
298
|
padding: 16px;
|
|
299
|
+
grid-template-columns: auto 1fr;
|
|
297
300
|
|
|
298
301
|
@include from-br(sm) {
|
|
299
302
|
padding: 20px;
|