diff --git a/frontend/src/components/site-finder/Pipeline24moBlock.tsx b/frontend/src/components/site-finder/Pipeline24moBlock.tsx index 4b3d24bd..76a258f6 100644 --- a/frontend/src/components/site-finder/Pipeline24moBlock.tsx +++ b/frontend/src/components/site-finder/Pipeline24moBlock.tsx @@ -242,11 +242,18 @@ export function Pipeline24moBlock({ data }: Props) { (q.flats / maxFlatsPerQuarter) * BAR_AREA_PX, ) : 4; + // Компактная подпись в 2 строки: «Q2» / «'26». Полная «2026-Q2» + // (nowrap) шире ячейки → 9 кварталов выдавливали flex-ряд за + // правый край карточки. minWidth:0 ниже даёт колонкам ужиматься. + const qm = /^(\d{4})-(Q\d)$/.exec(q.quarter); + const qLabel = qm ? qm[2] : q.quarter; + const qYear = qm ? `'${qm[1].slice(2)}` : ""; return (
- {q.quarter} +
{qLabel}
+ {qYear && ( +
+ {qYear} +
+ )}
);