fix: 研究Tab温区表分隔行colspan 14→15(表头15列对齐,修复备选表格错位)
This commit is contained in:
+3
-3
@@ -2810,15 +2810,15 @@ function renderStrategyTable(strategies) {
|
||||
const backup = metas.filter(s => s.current !== true);
|
||||
let html = '<tbody class="align-top">';
|
||||
if (active.length) {
|
||||
html += '<tr class="bg-emerald-900/20"><td colspan="14" class="px-2 py-1 text-[10px] text-emerald-300 font-bold">✅ 已激活 (' + active.length + ')</td></tr>';
|
||||
html += '<tr class="bg-emerald-900/20"><td colspan="15" class="px-2 py-1 text-[10px] text-emerald-300 font-bold">✅ 已激活 (' + active.length + ')</td></tr>';
|
||||
html += active.map(s => renderRegimeRow(s, rg)).join('');
|
||||
}
|
||||
if (backup.length) {
|
||||
html += '<tr class="border-t border-slate-700/50"><td colspan="14" class="px-2 py-1 text-[10px] text-slate-400">' +
|
||||
html += '<tr class="border-t border-slate-700/50"><td colspan="15" class="px-2 py-1 text-[10px] text-slate-400">' +
|
||||
'<button onclick="toggleBackup(\'' + marketLabel + rg + '\')" class="hover:text-slate-200">' +
|
||||
'<span id="bk-arrow-' + marketLabel + rg + '">▶</span> 备选 (资格达标未激活, ' + backup.length + ') <span class="text-slate-600">点击展开</span></button></td></tr>';
|
||||
html += '<tr id="bk-body-' + marketLabel + rg + '" class="hidden">' +
|
||||
'<td colspan="14" class="p-0">' +
|
||||
'<td colspan="15" class="p-0">' +
|
||||
'<table class="w-full"><tbody>' + backup.map(s => renderRegimeRow(s, rg)).join('') + '</tbody></table>' +
|
||||
'</td></tr>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user