Add ITM and OTM filter toggles to options chain.

Default to in-the-money view with at-the-money contracts included; update expiry counts and empty states for the active filter.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-10 11:25:24 +08:00
parent b70ce510ef
commit 9f255f13dd
3 changed files with 37 additions and 7 deletions
+2
View File
@@ -3034,6 +3034,7 @@ html[data-theme="light"] .opt-be-dist-down {
.options-chain-toolbar .btn-secondary.active,
.opt-uly-btn.active,
.opt-type-btn.active,
.opt-money-btn.active,
.opt-pos-tab.active {
border-color: #5b8cff;
color: #cfe0ff;
@@ -3681,6 +3682,7 @@ html[data-theme="light"] .options-page-wrap .options-stat-item .v {
html[data-theme="light"] .options-chain-toolbar .btn-secondary.active,
html[data-theme="light"] .opt-uly-btn.active,
html[data-theme="light"] .opt-type-btn.active,
html[data-theme="light"] .opt-money-btn.active,
html[data-theme="light"] .opt-pos-tab.active {
border-color: rgba(0, 95, 140, 0.45) !important;
color: #004d6e !important;