From d945fb1ab6a6c35e9232afb55c722fe35d9ea01e Mon Sep 17 00:00:00 2001 From: Benjamin Sutter Date: Wed, 10 Jun 2026 23:48:35 +0200 Subject: [PATCH] refine(anfragencenter): compact match cards 168px, reply field 7 rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Match cards reduced to 168px wide, 60px image height — supplementary context should not visually dominate the primary chat content. Reply textarea grows to 7 rows so the composer takes more of the available space. Co-Authored-By: Claude Sonnet 4.6 --- .../anfragencenter/InquiryReplyComposer.tsx | 2 +- .../RelatedPropertyCardPanel.tsx | 35 +++++++++++-------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/components/anfragencenter/InquiryReplyComposer.tsx b/src/components/anfragencenter/InquiryReplyComposer.tsx index 7980363..8c9f356 100644 --- a/src/components/anfragencenter/InquiryReplyComposer.tsx +++ b/src/components/anfragencenter/InquiryReplyComposer.tsx @@ -131,7 +131,7 @@ export function InquiryReplyComposer({ value={body} onChange={e => { setBody(e.target.value); setIsAIDraft(false) }} multiline - rows={5} + rows={7} placeholder="Antwort verfassen..." fullWidth sx={isAIDraft ? { '& .MuiOutlinedInput-root': { borderColor: '#ddd6fe' }, '& fieldset': { borderColor: '#ddd6fe !important' } } : {}} diff --git a/src/components/anfragencenter/RelatedPropertyCardPanel.tsx b/src/components/anfragencenter/RelatedPropertyCardPanel.tsx index dba7b13..09c631c 100644 --- a/src/components/anfragencenter/RelatedPropertyCardPanel.tsx +++ b/src/components/anfragencenter/RelatedPropertyCardPanel.tsx @@ -179,21 +179,21 @@ function MatchSliderCard({ match }: { match: AdditionalPropertyMatch }) { onClick={() => navigate('/supply/properties')} sx={{ flexShrink: 0, - width: 240, + width: 168, border: '1px solid #e8e7e4', - borderRadius: 2, + borderRadius: 1.5, overflow: 'hidden', cursor: 'pointer', bgcolor: 'white', transition: 'border-color 0.15s, box-shadow 0.15s', '&:hover': { borderColor: '#b0aead', - boxShadow: '0 4px 14px rgba(0,0,0,0.09)', + boxShadow: '0 2px 8px rgba(0,0,0,0.08)', }, }} > - {/* Image — same aspectRatio: '3/2' as PropertyIntelligenceCard */} - + {/* Image — 16:9 crop, compact supplementary card */} + {match.imageUrl ? ( ) : ( - + )} {/* Score badge overlay */} @@ -225,17 +225,22 @@ function MatchSliderCard({ match }: { match: AdditionalPropertyMatch }) { {match.matchScore}% - - - {match.title} - - - {match.location} · {match.areaSqm.toLocaleString('de-CH')} m² + + + + {match.title} + + + {match.matchScore}% + + + + {match.location} {match.reasons[0] && ( - + + {match.reasons[0]} )}