Add spot sell retry UI; sell all trading-account coin on sell-back.

Fix coin-margin sell-back to use full available balance instead of bridge record; show retry banner and button on the options positions panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-23 08:01:06 +08:00
parent 6215d0975d
commit a18f1f6713
6 changed files with 152 additions and 42 deletions
+25
View File
@@ -5233,6 +5233,24 @@ html[data-theme="light"] .opt-source-badge--oo {
font-variant-numeric: tabular-nums;
font-weight: 600;
}
.opt-spot-sell-banner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px 12px;
margin: 0 0 10px;
padding: 10px 12px;
border: 1px solid rgba(255, 170, 80, 0.45);
border-radius: 10px;
background: rgba(48, 32, 12, 0.55);
}
.opt-spot-sell-banner-text {
flex: 1;
min-width: 180px;
font-size: 0.82rem;
color: #f5d9b8;
line-height: 1.45;
}
.opt-target-monitors {
margin: 0 0 10px;
padding: 10px 12px;
@@ -5836,6 +5854,13 @@ html[data-theme="light"] .options-page-wrap .pos-empty {
color: #334155 !important;
}
html[data-theme="light"] .options-page-wrap .opt-spot-sell-banner {
border-color: rgba(180, 110, 40, 0.45);
background: rgba(255, 244, 228, 0.95);
}
html[data-theme="light"] .options-page-wrap .opt-spot-sell-banner-text {
color: #6a4a18;
}
html[data-theme="light"] .options-page-wrap .opt-target-monitors {
background: #eef4fa !important;
border: 1px solid #94a3b8 !important;