Fix options chain headers mixing list and T-view columns.
Thead rows used a .hidden class with no CSS rule on instance pages, so both header sets stayed visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3084,6 +3084,10 @@ html[data-theme="light"] .settings-side-export-label {
|
||||
z-index: 1;
|
||||
background: rgba(18, 24, 38, 0.98);
|
||||
}
|
||||
/* 列表 / T 型表头互斥:类名 hidden 需显式隐藏(实例页无全局 .hidden) */
|
||||
.options-strike-table thead tr.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
.options-strike-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
@@ -291,9 +291,18 @@
|
||||
const headList = document.getElementById("opt-strike-head-list");
|
||||
const headT = document.getElementById("opt-strike-head-t");
|
||||
const headTCols = document.getElementById("opt-strike-head-t-cols");
|
||||
if (headList) headList.classList.toggle("hidden", isT);
|
||||
if (headT) headT.classList.toggle("hidden", !isT);
|
||||
if (headTCols) headTCols.classList.toggle("hidden", !isT);
|
||||
if (headList) {
|
||||
headList.classList.toggle("hidden", isT);
|
||||
headList.hidden = isT;
|
||||
}
|
||||
if (headT) {
|
||||
headT.classList.toggle("hidden", !isT);
|
||||
headT.hidden = !isT;
|
||||
}
|
||||
if (headTCols) {
|
||||
headTCols.classList.toggle("hidden", !isT);
|
||||
headTCols.hidden = !isT;
|
||||
}
|
||||
const wrap = document.getElementById("opt-strike-table-wrap");
|
||||
if (wrap) wrap.classList.toggle("options-strike-table-wrap--t", isT);
|
||||
const table = document.getElementById("opt-strike-table");
|
||||
|
||||
Reference in New Issue
Block a user