From 431111a8574f7baafac2e7c4ef1586a4c0abf631 Mon Sep 17 00:00:00 2001 From: ZHU MINCHAO <48154958+MinchaoZhu@users.noreply.github.com> Date: Wed, 4 Nov 2026 10:34:49 +0800 Subject: [PATCH] ui: fix long label clipping in intel tips and rebalance table column widths --- src/Decentralized/TerminalWindow.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Decentralized/TerminalWindow.cs b/src/Decentralized/TerminalWindow.cs index 02b3c6b..d09139d 100644 --- a/src/Decentralized/TerminalWindow.cs +++ b/src/Decentralized/TerminalWindow.cs @@ -320,7 +320,7 @@ namespace Decentralized private static string _perpProduct = "PSC"; private static bool _perpLong = true; private static int _perpLev = 3; - private static readonly float[] PerpW = { 118f, 60f, 104f, 60f, 58f }; + private static readonly float[] PerpW = { 90f, 85f, 80f, 90f, 55f }; private static readonly TextAnchor[] PerpAligns = { TextAnchor.MiddleLeft, TextAnchor.MiddleRight, TextAnchor.MiddleRight, TextAnchor.MiddleRight, TextAnchor.MiddleRight }; private static double PerpSpot(string p) => p == "SPARK" ? Session.Data.Stable.Spark : Session.Data.Market.Price; @@ -406,7 +406,7 @@ namespace Decentralized }); } - private static readonly float[] PoolW = { 128f, 50f, 64f, 64f, 50f, 60f }; + private static readonly float[] PoolW = { 110f, 50f, 64f, 64f, 50f, 78f }; private static readonly TextAnchor[] PoolAligns = { TextAnchor.MiddleLeft, TextAnchor.MiddleRight, TextAnchor.MiddleRight, TextAnchor.MiddleRight, TextAnchor.MiddleRight, TextAnchor.MiddleRight }; /// 第三方收益池:日息、储备、时间锁、审计、我的存款,存入 / 取出(合约调用,签名)。是不是骗局看不见。 @@ -797,13 +797,13 @@ namespace Decentralized r.AddLabel(PredictGame.Question(m)); var tip = d.Predict.TipFor(m.Id); if (tip != null) { r.AddLabel(L.T("predict.clue.tip", L.T("predict.tier." + tip.Tier), L.T(tip.Claim ? "predict.yes" : "predict.no")), "intel_tip_dim"); continue; } - r.BeginRow(4f); for (int t = 0; t < 3; t++) { int tier = t; r.AddButton(L.T("intel.tip.buy", (int)Math.Round(Tuning.IntelTipAcc[t] * 100), Fmt.Num(Tuning.IntelTipPrice[t] * m.MaxLoss)), () => IntelBuyTip(mk, tier)); + r.Last?.SetPreferredSize(RightW - 30f, 28f); + if (t < 2) r.AddSpace(2f); } - r.End(); } }); }