Put location and photo timestamp in same row for more compact layout

This commit is contained in:
2025-11-16 22:21:45 +00:00
parent 8f98047bca
commit b801b12435

View File

@@ -185,18 +185,29 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute
</div>
</div>
{/* Location */}
<div className="p-3 border border-gray-200 rounded-lg">
<p className="text-sm text-gray-500 mb-2">Location</p>
<div className="space-y-1">
<p className="font-mono text-sm text-gray-900">
{Number(report.latitude).toFixed(6)}, {Number(report.longitude).toFixed(6)}
</p>
<p className="text-xs text-gray-500">
Source: {report.locationSource === 'exif' ? 'Photo EXIF data' :
report.locationSource === 'gps' ? 'Device GPS' : 'Manual selection'}
</p>
{/* Location and Photo Timestamp */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
<div className="p-3 border border-gray-200 rounded-lg">
<p className="text-sm text-gray-500 mb-2">Location</p>
<div className="space-y-1">
<p className="font-mono text-sm text-gray-900">
{Number(report.latitude).toFixed(6)}, {Number(report.longitude).toFixed(6)}
</p>
<p className="text-xs text-gray-500">
Source: {report.locationSource === 'exif' ? 'Photo EXIF data' :
report.locationSource === 'gps' ? 'Device GPS' : 'Manual selection'}
</p>
</div>
</div>
{report.photoTimestamp && (
<div className="p-3 border border-gray-200 rounded-lg">
<p className="text-sm text-gray-500 mb-1">Photo Taken</p>
<p className="text-gray-900">
{format(new Date(report.photoTimestamp), 'PPP')} at {format(new Date(report.photoTimestamp), 'p')}
</p>
</div>
)}
</div>
{/* Description */}
@@ -207,16 +218,6 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute
</div>
)}
{/* Photo Timestamp */}
{report.photoTimestamp && (
<div className="p-3 border border-gray-200 rounded-lg">
<p className="text-sm text-gray-500 mb-1">Photo Taken</p>
<p className="text-gray-900">
{format(new Date(report.photoTimestamp), 'PPP')} at {format(new Date(report.photoTimestamp), 'p')}
</p>
</div>
)}
{/* Environmental Concerns */}
{report.environmentalConcerns && report.environmentalConcerns.length > 0 && (
<div className="border border-gray-200 rounded-lg p-3">