fix(tradein/v2): заглушка карты в шапке заезжала под адресную карточку
All checks were successful
CI Trade-In / changes (pull_request) Successful in 10s
CI / changes (pull_request) Successful in 10s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Successful in 1m13s
All checks were successful
CI Trade-In / changes (pull_request) Successful in 10s
CI / changes (pull_request) Successful in 10s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Successful in 1m13s
После проставления карточке z-index: 750 (#2530) она стала перекрывать текст заглушки «Карта появится после расчёта адреса», который центрировался по всему блоку шириной 560px. Заглушке добавлен левый отступ 214px — ширина полосы карточки (left:16 + width:182) плюс зазор. Центрирование теперь происходит в свободной области справа от карточки. То же исправляет и состояние «Не удалось загрузить карту», которое рендерится тем же блоком. Замечено пользователем на проде.
This commit is contained in:
parent
a0647a53a9
commit
4ec6fc9970
1 changed files with 6 additions and 1 deletions
|
|
@ -163,7 +163,12 @@ function HeroMiniMap({ lat, lon }: HeroMiniMapProps) {
|
||||||
color: tokens.muted,
|
color: tokens.muted,
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
textAlign: "center",
|
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
|
{lat == null || lon == null
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue