From a3d3983d7857899d910ce1203f8331e626cb4e5b Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Tue, 1 Sep 2026 16:37:58 +0500 Subject: [PATCH] =?UTF-8?q?fix(ServiceRequest):=20=D1=83=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D0=B9=20FormGrid?= =?UTF-8?q?=20=D0=B2=D0=BD=D1=83=D1=82=D1=80=D0=B8=20CollapseSection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CollapseSection.body у @tnsu/ui-kit уже сам является 2-колоночным грид- контейнером (._body{grid-template-columns:1fr 1fr}) — FormGrid внутри неё создавал ВЛОЖЕННЫЙ грид, который занимал только ОДНУ из двух колонок родителя (как единственный grid-item без явного grid-column), а его собственные две колонки делили уже урезанную пополам ширину. Из-за этого «Объём работ», «Итого объёмы работ» и «Общие замечания» рендерились на половине ширины карточки, хотя место было. FormField кладём прямо в CollapseSection, без обёртки FormGrid — так уже сделано во всех остальных формах (см. Clearance/RequestSection.tsx). Co-Authored-By: Claude Sonnet 5 --- .../sections/RemarksSection.tsx | 22 ++--- .../ServiceRequest/sections/ScopeSection.tsx | 94 +++++++++---------- 2 files changed, 56 insertions(+), 60 deletions(-) diff --git a/src/webparts/requestPortal/forms/ServiceRequest/sections/RemarksSection.tsx b/src/webparts/requestPortal/forms/ServiceRequest/sections/RemarksSection.tsx index cef9ddd..08c2caf 100644 --- a/src/webparts/requestPortal/forms/ServiceRequest/sections/RemarksSection.tsx +++ b/src/webparts/requestPortal/forms/ServiceRequest/sections/RemarksSection.tsx @@ -1,20 +1,18 @@ import * as React from 'react'; -import { CollapseSection, FormGrid, FormField, TextArea } from '../../../shared/ui'; +import { CollapseSection, FormField, TextArea } from '../../../shared/ui'; import { ISectionProps } from '../model'; /** Общие замечания — отдельный блок бумажной формы, не относится к объёму работ. */ export const RemarksSection: React.FC = ({ data, set }) => ( - - -