Refine options position accordion: default collapsed, 2dp PnL, card outside scroll.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-09 17:00:06 +08:00
parent f41af0bf1c
commit ff83f6eebc
3 changed files with 96 additions and 43 deletions
+24 -15
View File
@@ -3213,6 +3213,29 @@ html[data-theme="light"] .options-estimate-row {
font-size: 0.78rem;
color: #b8c0dc;
}
.options-pos-live-layout {
display: flex;
flex-direction: column;
min-height: 0;
flex: 1;
}
.opt-pos-expanded-host {
flex-shrink: 0;
margin-top: 8px;
overflow: visible;
}
.opt-pos-expanded-host .opt-pos-card {
margin-bottom: 0;
}
.options-pos-live-pane--bars-only {
flex: 1;
min-height: 72px;
max-height: 140px;
overflow-y: auto;
}
.options-pos-subcard .options-pos-live-layout {
min-height: 0;
}
.options-pos-live-pane {
flex: 1;
min-height: 100px;
@@ -3284,8 +3307,7 @@ html[data-theme="light"] .options-estimate-row {
background: #171d2a;
}
.opt-pos-accordion-item.is-expanded .opt-pos-bar {
border-radius: 8px 8px 0 0;
border-bottom-color: transparent;
border-color: #4a6fd8;
background: #171d2a;
}
.opt-pos-bar-main {
@@ -3337,19 +3359,6 @@ html[data-theme="light"] .options-estimate-row {
.opt-pos-accordion-item.is-expanded .opt-pos-bar-chevron {
transform: rotate(90deg);
}
.opt-pos-accordion-body {
border: 1px solid #2a3348;
border-top: none;
border-radius: 0 0 8px 8px;
overflow: hidden;
background: #141923;
}
.opt-pos-card--nested {
margin-bottom: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
}
.options-page-wrap .opt-pos-card .pos-card-symbol strong {
font-size: 0.78rem;
}