diff --git a/static/index.html b/static/index.html index 5d80a5a6..9041dc0e 100644 --- a/static/index.html +++ b/static/index.html @@ -35,6 +35,10 @@ body { background: #0f0f13; color: #e2e8f0; } .spec-btn.colinfo { color: #58a6ff; background: rgba(88,166,255,0.1); } .spec-btn.colinfo:hover { background: rgba(88,166,255,0.25); } .spec-th-help { margin-left: 3px; display: inline-flex; gap: 3px; vertical-align: middle; } +.spec-th-col { display: flex; flex-direction: column; align-items: center; line-height: 1.1; } +.spec-th-label { white-space: nowrap; } +.spec-th-btns { display: inline-flex; gap: 3px; margin-top: 1px; } +.spec-th-btns .spec-btn { width: 15px; height: 15px; font-size: 10px; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #0f0f13; } ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; } @@ -2507,8 +2511,12 @@ function renderStrategyTable(strategies) { }; const th = (key, label, cls, title, colKey) => { const arrow = window._sortKey === key ? (window._sortDir === 'desc' ? '▼' : '▲') : ''; - const helpBtns = colKey ? `§` : ''; - return `${label}${helpBtns}${arrow ? ' ' + arrow : ''}`; + const helpBtns = colKey ? `§` : ''; + // 2026-08-17 老莫:ⓘ§按钮放第二行(spec-th-row),列名一行保持列宽,避免横向滚动条 + const thInner = colKey + ? `
${label}${arrow ? ' ' + arrow : ''}
${helpBtns}
` + : `${label}${arrow ? ' ' + arrow : ''}`; + return `${thInner}`; }; // 2026-08-13 温区自适应:按"适应温区"展开——每策略每温区一行 // 当前 = 当前温区激活(后端 s.current 已改为 regime_weights.active 判断);历史 = 其余,默认折叠 @@ -2739,8 +2747,8 @@ function renderStrategyTable(strategies) { '' + '
' + th('version', '版本', 'text-left', '策略版本标识', 'version') + th('name', '名称', 'text-left', '策略人话名称', 'name') + - '' + - '' + + '' + + '' + th('win_rate', '胜率', 'text-right', '盈利笔数占比', 'win_rate') + th('avg_profit', '平均收益', 'text-right', '每笔平均收益率', 'avg_profit') + th('trades', '成交/信号', 'text-right', '实际入场笔数 / 触发信号数(组合模拟10等分仓位下实际成交)', 'trades') + th('hold', '均持仓', 'text-right', '平均持仓天数', 'hold') + th('cagr', '年化', 'text-right', '年化收益率', 'cagr') + th('composite', '综合', 'text-right', '多维度综合评分', 'composite') + th('sharpe', '夏普', 'text-right', '每单位波动超额收益', 'sharpe') + th('profit_factor', '盈亏比', 'text-right', '总盈利/总亏损', 'profit_factor') +
资格§可用§
资格
§
可用
§