diff --git a/tradein-mvp/frontend/src/components/trade-in/MapCard.tsx b/tradein-mvp/frontend/src/components/trade-in/MapCard.tsx index 5e4d95a3..502ada06 100644 --- a/tradein-mvp/frontend/src/components/trade-in/MapCard.tsx +++ b/tradein-mvp/frontend/src/components/trade-in/MapCard.tsx @@ -174,6 +174,10 @@ export function MapCard({ estimate }: Props) { weight: 1, fillColor: COLOR_TARGET, fillOpacity: 0.05, + // Декоративный радиус-круг рисуется ПОСЛЕ маркеров и по умолчанию + // перехватывал бы клики по пинам под ним (#786) → bindPopup не + // срабатывал. interactive:false пропускает клики к маркерам. + interactive: false, }).addTo(map); L.circleMarker(ll, { radius: 9, @@ -218,9 +222,11 @@ export function MapCard({ estimate }: Props) {
объявления · {analogs.length}
-
- сделки ДКП · {deals.length} -
+ {deals.length > 0 && ( +
+ сделки ДКП · {deals.length} +
+ )} @@ -241,8 +247,14 @@ export function MapCard({ estimate }: Props) {
ваша квартира ·{" "} - asking ·{" "} - ДКП · клик по пину — детали + asking + {deals.length > 0 && ( + <> + {" · "} + ДКП + + )} + {" · клик по пину — детали"}