ui: fix long label clipping in intel tips and rebalance table column widths

This commit is contained in:
ZHU MINCHAO committed 2026-11-04 10:34:49 +08:00
1 parent 7ba1381cf0
commit 431111a857
1 file changed
+4 -4
+4 -4
View File
@@ -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 };
/// <summary>第三方收益池:日息、储备、时间锁、审计、我的存款,存入 / 取出(合约调用,签名)。是不是骗局看不见。</summary>
@@ -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();
}
});
}