Align options realtime PnL with bid-net and show totals in stats.

Header float PnL now uses bid recycle minus premium like position cards. Stats adds realized/open/total net PnL.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-15 22:00:45 +08:00
parent 60f3437c73
commit ee7be3e7f3
14 changed files with 198 additions and 19 deletions
+18
View File
@@ -3929,6 +3929,24 @@ html[data-theme="light"] .options-estimate-row {
.options-pos-stats-card {
flex-shrink: 0;
}
.options-stats-pnl-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.options-stats-pnl-summary .options-stat-item {
padding: 10px 12px;
border-radius: 8px;
background: rgba(127, 127, 127, 0.12);
}
.options-stats-pnl-summary .opt-stats-net-item .v {
font-size: 1.15em;
font-weight: 650;
}
html[data-theme="light"] .options-stats-pnl-summary .options-stat-item {
background: rgba(0, 0, 0, 0.04);
}
.options-stats-panel {
display: flex;
flex-direction: column;