Options: eth-amount dialog, stop note autofill, pending tab in positions.

Selecting 指定币数量 opens an order dialog; pending orders move into a 当前委托 tab after 当前持仓; harden remark autofill that showed dekun.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-20 08:00:39 +08:00
parent debfb116fd
commit 19b46d19fd
5 changed files with 279 additions and 48 deletions
+56 -21
View File
@@ -3928,22 +3928,11 @@ html[data-theme="light"] .options-strike-table--t .opt-strike-row-atm td {
border-radius: 8px;
}
.opt-order-layout {
display: flex;
align-items: stretch;
gap: 14px;
display: block;
}
.opt-order-main {
flex: 1 1 auto;
min-width: 0;
}
.opt-order-pending {
flex: 0 0 280px;
max-width: 320px;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid rgba(158, 192, 255, 0.2);
background: rgba(0, 0, 0, 0.18);
}
.opt-order-pending-head {
display: flex;
align-items: center;
@@ -3973,6 +3962,12 @@ html[data-theme="light"] .options-strike-table--t .opt-strike-row-atm td {
max-height: 220px;
overflow: auto;
}
.opt-pending-list--tab {
max-height: min(52vh, 420px);
}
.opt-pos-pending-pane {
padding: 4px 2px 8px;
}
.opt-pending-empty {
font-size: 0.72rem;
}
@@ -4010,21 +4005,61 @@ html[data-theme="light"] .options-strike-table--t .opt-strike-row-atm td {
font-size: 0.68rem;
padding: 2px 8px;
}
html[data-theme="light"] .opt-order-pending {
background: rgba(0, 0, 0, 0.03);
border-color: rgba(0, 0, 0, 0.08);
.opt-eth-order-backdrop {
position: fixed;
inset: 0;
z-index: 2100;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: rgba(0, 0, 0, 0.72);
}
.opt-eth-order-backdrop[hidden] {
display: none !important;
}
.opt-eth-order-dialog {
width: min(92vw, 420px);
background: var(--card-bg, #121726);
color: inherit;
border: 1px solid rgba(127, 127, 127, 0.35);
border-radius: 12px;
padding: 16px 18px 18px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.opt-eth-order-dialog h3 {
margin: 0 0 8px;
font-size: 0.95rem;
}
.opt-eth-order-label {
display: block;
font-size: 0.76rem;
margin-bottom: 6px;
opacity: 0.85;
}
.opt-eth-order-dialog input[type="number"] {
width: 100%;
box-sizing: border-box;
font-size: 0.9rem;
padding: 8px 10px;
border-radius: 8px;
}
.opt-eth-order-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.opt-eth-order-actions .btn-primary,
.opt-eth-order-actions .btn-secondary {
flex: 1 1 140px;
}
html[data-theme="light"] .opt-pending-item {
background: #fff;
border-color: rgba(0, 0, 0, 0.08);
}
@media (max-width: 900px) {
.opt-order-layout {
flex-direction: column;
}
.opt-order-pending {
flex: 1 1 auto;
max-width: none;
.opt-pending-list--tab {
max-height: min(46vh, 360px);
}
}
.opt-order-panel-inner .opt-order-title {