Equalize strategy and position panel heights without clipping.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1086,7 +1086,7 @@ input {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 计划页:上排策略|持仓;窄窗允许内容撑开,避免持仓被裁切 */
|
/* 计划页:上排策略|持仓等高(取两边较高);内容溢出时卡片内滚动 */
|
||||||
.plan-shell {
|
.plan-shell {
|
||||||
--plan-cols: minmax(0, 1fr) minmax(0, 1.15fr);
|
--plan-cols: minmax(0, 1fr) minmax(0, 1.15fr);
|
||||||
--plan-gap: 12px;
|
--plan-gap: 12px;
|
||||||
@@ -1109,7 +1109,12 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.plan-board {
|
.plan-board {
|
||||||
align-items: start;
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-board > * {
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plan-panel-title {
|
.plan-panel-title {
|
||||||
@@ -1117,23 +1122,28 @@ input {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plan-strategy {
|
.plan-strategy {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: visible;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plan-metrics {
|
.plan-metrics {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plan-metrics .kv {
|
.plan-metrics .kv {
|
||||||
@@ -1145,6 +1155,7 @@ input {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--plan-gap);
|
gap: var(--plan-gap);
|
||||||
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -1152,13 +1163,21 @@ input {
|
|||||||
|
|
||||||
.plan-positions .pos-card,
|
.plan-positions .pos-card,
|
||||||
.plan-positions .pos-empty {
|
.plan-positions .pos-empty {
|
||||||
flex: 0 0 auto;
|
flex: 1 1 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-positions .pos-card {
|
||||||
|
justify-content: flex-start;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-countdown {
|
.pos-countdown {
|
||||||
@@ -1185,9 +1204,23 @@ input {
|
|||||||
--plan-cols: minmax(0, 1fr);
|
--plan-cols: minmax(0, 1fr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.plan-board {
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-strategy,
|
||||||
|
.plan-positions {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-metrics {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
.plan-positions .pos-card,
|
.plan-positions .pos-card,
|
||||||
.plan-positions .pos-empty {
|
.plan-positions .pos-empty {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 合约名与倒计时上下排,避免长 inst_id 被挤成竖排 */
|
/* 合约名与倒计时上下排,避免长 inst_id 被挤成竖排 */
|
||||||
@@ -1628,7 +1661,6 @@ input {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 12px 14px;
|
padding: 12px 14px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow: visible;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user