fix(tradein/v2): аналитика — выровнять два графика в равную высоту #2483
1 changed files with 6 additions and 4 deletions
|
|
@ -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="Точечный график зависимости цены продажи от срока экспозиции: аналоги, сделки и ваш объект"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue