Skip to content

Commit

Permalink
replace preview nuxtpicture with nuxtimg because it fixes sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 27, 2024
1 parent a0d0d11 commit 78e9422
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
{{ post.description }}
</div>
</div>
<div class="mt-auto">
<NuxtPicture v-if="post.image" class="w-full h-48 object-cover rounded-lg mt-4"
:src="post.image" :alt="post.title" style="aspect-ratio: 1 / 1;" />
<div class="mt-auto w-48 h-48">
<NuxtImg v-if="post.image" class="w-48 h-48" :src="post.image" :alt="post.title" />
</div>
</article>
</NuxtLink>
Expand Down

0 comments on commit 78e9422

Please sign in to comment.