Restore strategy chips and 1080p side margins.
Stick expand hint to card bottom; drop mistaken key-monitor slot; keep ultrawide content width. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3860,25 +3860,7 @@
|
||||
return html;
|
||||
}
|
||||
|
||||
function renderPerpetualKeyMonitorSlot(keys, kmap) {
|
||||
const list = Array.isArray(keys) ? keys : [];
|
||||
let html = `<div class="section-title">监控位 · ${list.length}</div>`;
|
||||
html += `<div class="hub-slot-monitor" data-key-count="${list.length}">`;
|
||||
if (list.length) {
|
||||
const first = list.slice(0, 1);
|
||||
html += renderKeySection(first, kmap || {});
|
||||
if (list.length > 1) {
|
||||
html += `<div class="empty-hint hub-slot-more">另有 ${list.length - 1} 个监控位 · 点标题全屏查看</div>`;
|
||||
}
|
||||
} else {
|
||||
html += '<div class="empty-hint">无监控位</div>';
|
||||
}
|
||||
html += "</div>";
|
||||
return html;
|
||||
}
|
||||
|
||||
const HUB_EXPAND_HINT =
|
||||
"点击标题栏进入全屏 · 委托 / 关键位 / 下单监控 / 趋势回调 / 顺势加仓";
|
||||
const HUB_EXPAND_HINT = "点击标题栏进入全屏 · 委托 / 关键位 / 下单监控 / 趋势回调 / 顺势加仓";
|
||||
|
||||
function renderGridBody(row, ag, pos, hm, flaskOk, keys, orders, trends, rolls, kmap, layoutOpts) {
|
||||
const layout = layoutOpts || {};
|
||||
@@ -3887,7 +3869,7 @@
|
||||
const expandHint = `<div class="card-expand-hint">${esc(HUB_EXPAND_HINT)}</div>`;
|
||||
let inner = "";
|
||||
if (layout.okxPart === "perp" || layout.splitSide) {
|
||||
/* 桌面分栏永续/分所卡:预留仓位行+监控位行+全屏提示;不显示期权 N仓 */
|
||||
/* 桌面分栏:仓位预留 + 原关键位/趋势/顺势芯片 + 底栏提示;不显示期权 N仓 */
|
||||
if (layout.okxPart === "options") {
|
||||
inner += renderOptionsSectionBody(row);
|
||||
inner += expandHint;
|
||||
@@ -3896,11 +3878,7 @@
|
||||
if (layout.okxPart === "perp" || !rowHasOptionsLayout(row)) {
|
||||
inner += renderAccountStatRow(row, ag);
|
||||
inner += renderPerpetualPositionsSection(row, ag, pos, orders, trends, tickMap, intraday);
|
||||
inner += renderPerpetualKeyMonitorSlot(flaskOk ? keys : [], kmap || {});
|
||||
inner += renderCardStrategyStats(row, hm, flaskOk, {
|
||||
hideOptions: true,
|
||||
hideKeyChips: true,
|
||||
});
|
||||
inner += renderCardStrategyStats(row, hm, flaskOk, { hideOptions: true });
|
||||
if (intraday) {
|
||||
inner += `<div class="card-expand-hint">日内纪律:禁手动平仓/改委托 · 整点强制清仓${row.force_close && row.force_close.enabled ? " · " + esc(row.force_close.label || "强制清仓") : ""}</div>`;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user