From f783cf6881302151463154ddb9f5f152aea4be5c Mon Sep 17 00:00:00 2001 From: Benjamin Sutter Date: Wed, 10 Jun 2026 23:47:11 +0200 Subject: [PATCH] fix(anfragencenter): use aspectRatio 3/2 for match card images like PropertyIntelligenceCard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces fixed height: 90px with aspectRatio: '3/2' — the same ratio used in supply property cards. Ensures consistent, undistorted image crops across all card surfaces. objectFit: cover guaranteed via element. Co-Authored-By: Claude Sonnet 4.6 --- .../anfragencenter/RelatedPropertyCardPanel.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/anfragencenter/RelatedPropertyCardPanel.tsx b/src/components/anfragencenter/RelatedPropertyCardPanel.tsx index acfd303..dba7b13 100644 --- a/src/components/anfragencenter/RelatedPropertyCardPanel.tsx +++ b/src/components/anfragencenter/RelatedPropertyCardPanel.tsx @@ -92,20 +92,19 @@ export function RelatedPropertyCardPanel({ propertyId, inquiryId, compact }: Rel > {image ? ( ) : ( - + + + )} @@ -193,8 +192,8 @@ function MatchSliderCard({ match }: { match: AdditionalPropertyMatch }) { }, }} > - {/* Image with consistent aspect ratio */} - + {/* Image — same aspectRatio: '3/2' as PropertyIntelligenceCard */} + {match.imageUrl ? ( ) : ( - + )}