Next/Image: ObjectFit Cover does not apply!
Unanswered
Forest bachac posted this in #help-forum
Forest bachacOP
When doing
The expected result would be h-20 with part of the image cut off. Instead, it stretches!
<Image
src={image}
alt={title}
objectFit="cover"
height={250}
width={250}
className="h-20 w-full rounded-md"
/>The expected result would be h-20 with part of the image cut off. Instead, it stretches!
1 Reply
Netherland Dwarf
You set the classname to objext cover