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,