Skip to content

Commit 00fb359

Browse files
committed
test Image aspect
1 parent a43de10 commit 00fb359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/Components/Image.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ onBeforeMount(setImage)
6767
<picture :class="[props.class ?? 'w-full h-full flex justify-center items-center']">
6868
<source v-if="avif && avif != fallbackPath" type="image/avif" :srcset="avif">
6969
<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">
70+
<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">
7171
</picture>
7272
</template>

0 commit comments

Comments
 (0)