From 13654ce13490a4ec614760bd4db0dbb60799cd24 Mon Sep 17 00:00:00 2001 From: MpakobecEx Date: Sun, 1 Nov 2026 15:33:14 +0500 Subject: [PATCH] =?UTF-8?q?client:=20DeckBuilder=20=E2=80=94=20=D1=84?= =?UTF-8?q?=D0=B8=D0=BA=D1=81=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B0=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=D0=BB=D1=8C=20=D0=B8=20=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D0=BF=D1=82=D0=B8=D0=B2=D0=BD=D0=B0=D1=8F=20=D1=81=D0=B5=D1=82?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Правая панель сокращена до 420 px и больше не растягивается (childForceExpandWidth = false). - Коллекция занимает всё свободное место; число колонок считается по ширине, карточки не обрезаются справа. - Проверки: EditMode 69/69, standalone собран. --- client/Assets/Vanguard/Runtime/UI/DeckBuilderView.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/Assets/Vanguard/Runtime/UI/DeckBuilderView.cs b/client/Assets/Vanguard/Runtime/UI/DeckBuilderView.cs index 6a56f92..0944f58 100644 --- a/client/Assets/Vanguard/Runtime/UI/DeckBuilderView.cs +++ b/client/Assets/Vanguard/Runtime/UI/DeckBuilderView.cs @@ -19,7 +19,7 @@ namespace Vanguard.UI /// public sealed class DeckBuilderView { - private const float PanelWidth = 380f; + private const float PanelWidth = 420f; private const float RowHeight = 92f; private static readonly Color TextPrimary = new Color(0.88f, 0.93f, 1f); @@ -177,6 +177,9 @@ namespace Vanguard.UI body.offsetMin = new Vector2(34f, 24f); body.offsetMax = new Vector2(-34f, -120f); UiKit.AddHorizontalLayout(body, 0, 14); + var bodyLayout = body.GetComponent(); + if (bodyLayout != null) + bodyLayout.childForceExpandWidth = false; var collectionArea = UiKit.CreatePanel( body, "CollectionArea", new Color(0.04f, 0.06f, 0.10f, 0.55f)); @@ -213,11 +216,7 @@ namespace Vanguard.UI var grid = _collectionContent.GetComponent(); if (grid != null) - { - grid.constraint = GridLayoutGroup.Constraint.FixedColumnCount; - grid.constraintCount = 6; grid.childAlignment = TextAnchor.UpperLeft; - } _status = UiKit.CreateText( collectionArea, "Status", string.Empty, 15,