fix(hedge): equal-height right shell card with strategy status

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-09 10:02:59 +08:00
parent eca6d091e9
commit 425fc701bc
3 changed files with 175 additions and 53 deletions
+59 -3
View File
@@ -3542,12 +3542,57 @@ html[data-theme="light"] .opt-be-dist-down {
flex-wrap: wrap;
}
}
.hedge-plan-page-wrap .hp-po-right-card {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100%;
}
.hedge-plan-page-wrap .hp-po-right-stack {
display: flex;
flex-direction: column;
gap: 12px;
gap: 10px;
min-width: 0;
min-height: 0;
flex: 1 1 auto;
}
.hedge-plan-page-wrap .hp-po-inner-card {
margin: 0;
padding: 10px 12px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
min-width: 0;
min-height: 0;
}
.hedge-plan-page-wrap .hp-po-inner-card > h2 {
margin: 0 0 8px;
font-size: 0.95rem;
}
.hedge-plan-page-wrap .hp-po-action-row {
margin-top: auto;
padding-top: 10px;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
}
.hedge-plan-page-wrap .hp-po-strategy-status {
font-size: 0.86rem;
font-weight: 700;
letter-spacing: 0.02em;
min-height: 1.2em;
}
.hedge-plan-page-wrap .hp-po-strategy-status.is-watching {
color: #fbbf24;
}
.hedge-plan-page-wrap .hp-po-strategy-status.is-holding {
color: #3dd68c;
}
.hedge-plan-page-wrap .hp-po-strategy-status.is-idle {
color: #6b7388;
font-weight: 500;
}
.hedge-plan-page-wrap .hp-po-quote-head {
display: flex;
@@ -3841,19 +3886,30 @@ html[data-theme="light"] .opt-be-dist-down {
align-items: stretch;
margin-bottom: 28px;
}
.hedge-plan-page-wrap .options-dual-grid > .card,
.hedge-plan-page-wrap .hp-po-right-stack > .card {
.hedge-plan-page-wrap .options-dual-grid > .card {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
.hedge-plan-page-wrap #hp-po-layout {
align-items: stretch;
}
.hedge-plan-page-wrap #hp-po-layout > .card {
align-self: stretch;
}
.hedge-plan-page-wrap .hp-po-right-stack > .hp-po-perp-quote-card {
height: auto;
flex: 0 0 auto;
}
.hedge-plan-page-wrap .hp-po-right-stack > .hp-opt-card {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
}
.hedge-plan-page-wrap .hp-po-right-stack > .hp-opt-card .hp-strike-table-wrap--6 {
flex: 1 1 auto;
}
.hedge-plan-page-wrap .hp-action-row {
margin-top: 10px;