Constrain funds bar width and fold strategy rules.

Match page max-width on ultrawide and move the plan subtitle into a collapsible rules section under the funds strip.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-29 17:37:34 +08:00
parent 5c3bd4b654
commit f49365b4d4
5 changed files with 145 additions and 59 deletions
+3
View File
@@ -163,6 +163,9 @@ async def funds_summary(_user: Annotated[str, Depends(require_user)]) -> dict[st
"options_trading_label": _fmt_opt(opt_t_usdc, opt_t_usdt),
"realtime_pnl": realtime,
"usdc_usdt_rate": rate,
"perp_inst_id": str(
db.get_setting("perp_inst_id") or s.perp_inst_id or "ETH-USDT-SWAP"
),
"updated_at_ms": int(datetime.now(timezone.utc).timestamp() * 1000),
}