Compact command help cards (#8428)

This commit is contained in:
2026-07-11 07:50:40 -07:00
committed by GitHub
parent 3eb2607a7a
commit da89636165
@@ -110,8 +110,8 @@ namespace eagle {
var width = Mathf.Min(size.x - 32f, 760f);
var titleHeight = title.GetPreferredValues(titleText, width, 0f).y;
var bodyHeight = textField.GetPreferredValues(bodyText, width - 36f, 0f).y;
var maxHeight = Mathf.Max(200f, Mathf.Min(size.y * 0.8f, 320f));
var height = Mathf.Clamp(titleHeight + bodyHeight + 96f, 200f, maxHeight);
var maxHeight = Mathf.Max(160f, Mathf.Min(size.y * 0.55f, 240f));
var height = Mathf.Clamp(titleHeight + bodyHeight + 44f, 160f, maxHeight);
var margin = 18f;
_rectTransform.anchorMin = new Vector2(0.5f, 0.5f);