We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43de10 commit 00fb359Copy full SHA for 00fb359
resources/js/Components/Image.vue
@@ -67,6 +67,6 @@ onBeforeMount(setImage)
67
<picture :class="[props.class ?? 'w-full h-full flex justify-center items-center']">
68
<source v-if="avif && avif != fallbackPath" type="image/avif" :srcset="avif">
69
<source v-if="webp && webp != fallbackPath" type="image/webp" :srcset="webp">
70
- <img :class="[imageCover ? 'w-full object-cover aspect-auto' : '']" @load="() => emits('onLoadImage')" :srcset="original" :src="get(src, 'original')" :alt="alt" style="height: inherit;" v-bind="imgAttributes">
+ <img :class="[imageCover ? 'w-full object-cover aspect-[1/1]' : '']" @load="() => emits('onLoadImage')" :srcset="original" :src="get(src, 'original')" :alt="alt" style="height: inherit;" v-bind="imgAttributes">
71
</picture>
72
</template>
0 commit comments