Skip to content

Commit 36d9e64

Browse files
committed
feat: scrollcardsection keep image ratio
1 parent 8eea6c6 commit 36d9e64

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/sections/ScrollCardSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export function ScrollCardSection({ content }: ScrollCardSectionProps) {
197197
</div>
198198

199199
<div className={cn(
200-
"relative z-10 min-h-72 overflow-hidden rounded-2xl md:min-h-full",
200+
"relative z-10 aspect-video w-full self-center overflow-hidden rounded-2xl",
201201
showImageBorder && "border border-white/10",
202202
isImageLeft && "md:order-1",
203203
)}>
@@ -207,7 +207,7 @@ export function ScrollCardSection({ content }: ScrollCardSectionProps) {
207207
alt={image.alt ?? item.title}
208208
fill
209209
sizes="(min-width: 768px) 50vw, 100vw"
210-
className="object-cover"
210+
className="object-contain object-center"
211211
/>
212212
)}
213213
</div>

0 commit comments

Comments
 (0)