Use fixed width for nuxt image

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2023-10-26 21:20:55 +06:00
parent df1a6d1a97
commit fabe316cf8
3 changed files with 3 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ withDefaults(defineProps<Props>(), {
<div class="sm:col-span-3">
<NuxtImg
class="h-full w-full object-cover object-center rounded-t-2xl sm:rounded-l-2xl sm:rounded-t-none shadow-lg group-hover:scale-[1.02] transition-all duration-500"
width="300"
:src="image"
:alt="alt"
/>