Add expiry profit estimate and remove chain quick-buy button.

Let users enter a target index in the order panel for estimated expiry P&L, and remove the redundant buy button from the options chain row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 16:46:21 +08:00
parent 2cfc1a490f
commit 27921213b0
5 changed files with 146 additions and 10 deletions
+34
View File
@@ -2658,6 +2658,40 @@ html[data-theme="light"] .opt-be-dist-down {
.options-page-wrap .options-order-grid .v {
font-size: 0.8rem;
}
.options-estimate-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 12px;
margin: 8px 0 10px;
padding: 8px 10px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.03);
border: 1px dashed rgba(255, 255, 255, 0.08);
font-size: 0.74rem;
}
.options-estimate-row .opt-est-label {
color: #8892b0;
}
.options-estimate-row .opt-target-idx {
width: 120px;
font-size: 0.74rem;
padding: 3px 6px;
}
.options-estimate-row .k {
color: #8892b0;
}
.options-estimate-row .v {
font-size: 0.82rem;
font-weight: 600;
}
.options-estimate-row .opt-est-note {
font-size: 0.66rem;
}
html[data-theme="light"] .options-estimate-row {
background: rgba(0, 0, 0, 0.02);
border-color: rgba(0, 0, 0, 0.08);
}
.options-hint {
font-size: 0.75rem;
margin-bottom: 6px;