bill před 8 měsíci
rodič
revize
b4517e6b5c

+ 5 - 0
src/components/tagging/sign-new.vue

@@ -37,6 +37,7 @@
           </template>
         </div>
         <Images
+          class="images"
           :tagging="tagging"
           :in-full="true"
           @pull="(index) => (pullIndex = index)"
@@ -286,6 +287,10 @@ defineExpose(tag);
     cursor: pointer;
   }
 }
+
+.images {
+  height: 250px;
+}
 </style>
 
 <style>

+ 4 - 3
src/views/tagging/images.vue

@@ -8,12 +8,13 @@
       @change="(i: number) => index = i"
       :showInfos="tagging.images.length > 1 && !hideInfo"
     >
-      <template v-slot="{ raw, index }">
+      <template v-slot="{ raw, index: ndx }">
         <div
           class="meta-item"
           :class="{ full: inFull }"
-          @click="inFull && $emit('pull', index)"
+          @click="inFull && $emit('pull', ndx)"
         >
+          <!-- v-if="ndx === index" -->
           <ResourceView :data="getFileUrl(raw)" class="p-item" />
           <!-- <img :src="getResource(getFileUrl(raw))" /> -->
         </div>
@@ -51,7 +52,7 @@ const index = ref(0);
 <style lang="scss" scoped>
 .mates {
   width: 100%;
-  height: 250px;
+  height: 100%;
   overflow-y: auto;
 
   .meta-item {