Use fixed width for nuxt image
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
@@ -30,6 +30,7 @@ withDefaults(defineProps<Props>(), {
|
|||||||
<div class="sm:col-span-3">
|
<div class="sm:col-span-3">
|
||||||
<NuxtImg
|
<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"
|
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"
|
:src="image"
|
||||||
:alt="alt"
|
:alt="alt"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ withDefaults(defineProps<Props>(), {
|
|||||||
<NuxtImg
|
<NuxtImg
|
||||||
:src="image || ''"
|
:src="image || ''"
|
||||||
:alt="alt || ''"
|
:alt="alt || ''"
|
||||||
|
width="600"
|
||||||
class="m-auto rounded-2xl shadow-lg h-32 md:h-72 w-4/6 md:w-4/5 content-center object-cover"
|
class="m-auto rounded-2xl shadow-lg h-32 md:h-72 w-4/6 md:w-4/5 content-center object-cover"
|
||||||
/>
|
/>
|
||||||
<p class="text-xs sm:text-sm my-3 max-w-xl mx-auto text-center text-zinc-600 dark:text-zinc-400">
|
<p class="text-xs sm:text-sm my-3 max-w-xl mx-auto text-center text-zinc-600 dark:text-zinc-400">
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ withDefaults(defineProps<Props>(), {
|
|||||||
<NuxtLink :to="path">
|
<NuxtLink :to="path">
|
||||||
<NuxtImg
|
<NuxtImg
|
||||||
class="lg:h-48 md:h-36 w-full object-cover object-center rounded-t-2xl shadow-lg group-hover:scale-[1.02] transition-all duration-500"
|
class="lg:h-48 md:h-36 w-full object-cover object-center rounded-t-2xl shadow-lg group-hover:scale-[1.02] transition-all duration-500"
|
||||||
|
width="300"
|
||||||
:src="image"
|
:src="image"
|
||||||
:alt="alt"
|
:alt="alt"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user