fix: compact side-by-side image+map in PropertyDetailView drawer (140px)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Sutter
2026-05-18 21:11:38 +02:00
parent 732231ce13
commit 259b4e3c68
+25 -22
View File
@@ -13,7 +13,7 @@ import {
import { X } from 'lucide-react' import { X } from 'lucide-react'
import { NegotiationInsightsPanel } from './NegotiationInsightsPanel' import { NegotiationInsightsPanel } from './NegotiationInsightsPanel'
import { DataQualityPanel as DQPanel, ProvenancePanel } from '../data-quality' 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 { Property } from '../../domain/property'
import type { Match } from '../../domain/match' import type { Match } from '../../domain/match'
import type { FutureSignal } from '../../domain/futureSignal' import type { FutureSignal } from '../../domain/futureSignal'
@@ -366,27 +366,30 @@ export function PropertyDetailView({ propertyId, onClose }: PropertyDetailViewPr
)} )}
</Box> </Box>
{/* Photo + Map */} {/* Photo + Map — side by side, compact */}
<Box sx={{ flexShrink: 0 }}> {(property.images?.[0] || property.location.coordinates) && (
{property.images?.[0] && ( <Box sx={{ display: 'flex', flexShrink: 0, height: 140, borderBottom: '1px solid #e2e8f0' }}>
<LocationPreview {property.images?.[0] && (
imageUrl={property.images[0]} <Box sx={{ flex: property.location.coordinates ? '0 0 55%' : 1, overflow: 'hidden' }}>
lat={property.location.coordinates?.lat} <img
lng={property.location.coordinates?.lng} src={property.images[0]}
address={`${property.address.street} ${property.address.houseNumber}, ${property.address.city}`} alt={property.title}
cityLabel={property.location.city} style={{ width: '100%', height: '100%', objectFit: 'cover', display: 'block' }}
height={180} />
/> </Box>
)} )}
{property.location.coordinates && ( {property.location.coordinates && (
<PropertyMap <Box sx={{ flex: 1, overflow: 'hidden' }}>
lat={property.location.coordinates.lat} <PropertyMap
lng={property.location.coordinates.lng} lat={property.location.coordinates.lat}
label={property.title} lng={property.location.coordinates.lng}
height={240} label={property.title}
/> height={140}
)} />
</Box> </Box>
)}
</Box>
)}
{/* Tabs */} {/* Tabs */}
<Tabs <Tabs