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:
dekun
2026-07-16 11:57:07 +08:00
parent f0d5b47f50
commit 4c7197ad99
5 changed files with 21 additions and 8 deletions
+12 -3
View File
@@ -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");