fix(tradein/v2): аналитика — выровнять два графика в равную высоту (#2483)
All checks were successful
Deploy Trade-In / changes (push) Successful in 13s
Deploy Trade-In / test (push) Successful in 49s
Deploy Trade-In / build-frontend (push) Successful in 2m0s
Deploy Trade-In / build-browser (push) Successful in 29s
Deploy Trade-In / build-backend (push) Successful in 30s
Deploy Trade-In / deploy (push) Successful in 1m47s

This commit is contained in:
bot-backend 2026-07-12 15:16:34 +00:00
parent 95f0b0aa64
commit fcc37c46ab

View file

@ -329,13 +329,15 @@ export default function AnalyticsView({
{/* история цен + цена × срок продажи side by side so both fit the
fixed-height v2 artboard panel without scrolling (reclaims ~194px
of vertical space vs. stacking; chart heights unchanged). */}
of vertical space vs. stacking). Both SVGs share height: 260 (viewBox
heights differ 220 vs 300 but preserveAspectRatio="none" stretches
them to match) so the two cards render at equal height. */}
<div
style={{
display: "grid",
gridTemplateColumns: "1fr 1fr",
gap: 16,
alignItems: "start",
alignItems: "stretch",
}}
>
{/* история цен */}
@ -390,7 +392,7 @@ export default function AnalyticsView({
</div>
<svg
viewBox="0 0 900 220"
style={{ width: "100%", height: 200, marginTop: 12 }}
style={{ width: "100%", height: 260, marginTop: 12 }}
preserveAspectRatio="none"
role="img"
aria-label="График истории цен в этом доме: медиана ₽/м² по годам, серии Avito и Яндекс"
@ -577,7 +579,7 @@ export default function AnalyticsView({
</div>
<svg
viewBox="0 0 900 300"
style={{ width: "100%", height: 280, marginTop: 12 }}
style={{ width: "100%", height: 260, marginTop: 12 }}
preserveAspectRatio="none"
role="img"
aria-label="Точечный график зависимости цены продажи от срока экспозиции: аналоги, сделки и ваш объект"