From 259b4e3c686a4f2f2ae0c90db90605760e7d360e Mon Sep 17 00:00:00 2001 From: Benjamin Sutter Date: Mon, 18 May 2026 21:11:38 +0200 Subject: [PATCH] fix: compact side-by-side image+map in PropertyDetailView drawer (140px) Co-Authored-By: Claude Sonnet 4.6 --- src/components/supply/PropertyDetailView.tsx | 47 +++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/src/components/supply/PropertyDetailView.tsx b/src/components/supply/PropertyDetailView.tsx index dacd1ce..fc2e547 100644 --- a/src/components/supply/PropertyDetailView.tsx +++ b/src/components/supply/PropertyDetailView.tsx @@ -13,7 +13,7 @@ import { import { X } from 'lucide-react' import { NegotiationInsightsPanel } from './NegotiationInsightsPanel' import { DataQualityPanel as DQPanel, ProvenancePanel } from '../data-quality' -import { LocationPreview, PropertyMap } from '../shared' +import { PropertyMap } from '../shared' import type { Property } from '../../domain/property' import type { Match } from '../../domain/match' import type { FutureSignal } from '../../domain/futureSignal' @@ -366,27 +366,30 @@ export function PropertyDetailView({ propertyId, onClose }: PropertyDetailViewPr )} - {/* Photo + Map */} - - {property.images?.[0] && ( - - )} - {property.location.coordinates && ( - - )} - + {/* Photo + Map — side by side, compact */} + {(property.images?.[0] || property.location.coordinates) && ( + + {property.images?.[0] && ( + + {property.title} + + )} + {property.location.coordinates && ( + + + + )} + + )} {/* Tabs */}