From 4ec6fc99707b470b5e612f45999ec75c998b3ccd Mon Sep 17 00:00:00 2001 From: bot-backend Date: Mon, 27 Jul 2026 00:00:25 +0300 Subject: [PATCH] =?UTF-8?q?fix(tradein/v2):=20=D0=B7=D0=B0=D0=B3=D0=BB?= =?UTF-8?q?=D1=83=D1=88=D0=BA=D0=B0=20=D0=BA=D0=B0=D1=80=D1=82=D1=8B=20?= =?UTF-8?q?=D0=B2=20=D1=88=D0=B0=D0=BF=D0=BA=D0=B5=20=D0=B7=D0=B0=D0=B5?= =?UTF-8?q?=D0=B7=D0=B6=D0=B0=D0=BB=D0=B0=20=D0=BF=D0=BE=D0=B4=20=D0=B0?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D1=81=D0=BD=D1=83=D1=8E=20=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit После проставления карточке z-index: 750 (#2530) она стала перекрывать текст заглушки «Карта появится после расчёта адреса», который центрировался по всему блоку шириной 560px. Заглушке добавлен левый отступ 214px — ширина полосы карточки (left:16 + width:182) плюс зазор. Центрирование теперь происходит в свободной области справа от карточки. То же исправляет и состояние «Не удалось загрузить карту», которое рендерится тем же блоком. Замечено пользователем на проде. --- .../frontend/src/components/trade-in/v2/HeroBar.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx b/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx index c1e77d35..53564e5d 100644 --- a/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx +++ b/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx @@ -163,7 +163,12 @@ function HeroMiniMap({ lat, lon }: HeroMiniMapProps) { color: tokens.muted, fontSize: 11, textAlign: "center", - padding: "0 20px", + // Left padding clears the address card's lane (left:16 + width:182 = + // 198, plus a gutter). The card sits at z-index 750 and would + // otherwise cover this centred text — reported on prod right after + // the z-index fix landed. Centring happens inside the content box, + // so the text now centres in the free area to the right of the card. + padding: "0 20px 0 214px", }} > {lat == null || lon == null