Pack plan summary into multi-column layout for ultrawide screens.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -172,6 +172,7 @@ export default function PlanPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="card plan-summary" style={{ marginBottom: 12 }}>
|
<div className="card plan-summary" style={{ marginBottom: 12 }}>
|
||||||
|
<div className="plan-metrics">
|
||||||
<div className="kv">
|
<div className="kv">
|
||||||
<span>策略</span>
|
<span>策略</span>
|
||||||
<span>
|
<span>
|
||||||
@@ -236,13 +237,14 @@ export default function PlanPage() {
|
|||||||
<span className={`mono ${pnlClass(pos?.option_upl)}`}>{fmt(pos?.option_upl)}</span>
|
<span className={`mono ${pnlClass(pos?.option_upl)}`}>{fmt(pos?.option_upl)}</span>
|
||||||
</div>
|
</div>
|
||||||
{plan?.last_error ? (
|
{plan?.last_error ? (
|
||||||
<div className="kv">
|
<div className="kv kv-span">
|
||||||
<span>最近错误</span>
|
<span>最近错误</span>
|
||||||
<span className="err" style={{ margin: 0 }}>
|
<span className="err" style={{ margin: 0 }}>
|
||||||
{plan.last_error}
|
{plan.last_error}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="pos-embed-grid">
|
<div className="pos-embed-grid">
|
||||||
{open ? (
|
{open ? (
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ input {
|
|||||||
.kv {
|
.kv {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
align-items: baseline;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
@@ -220,8 +221,50 @@ input {
|
|||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv span:first-child {
|
.kv > span:first-child {
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
|
flex: 0 0 auto;
|
||||||
|
min-width: 5.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kv > span:last-child {
|
||||||
|
text-align: right;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 计划摘要:宽屏多列紧凑排布,避免标签与数值被拉成整行空洞 */
|
||||||
|
.plan-metrics {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
column-gap: 28px;
|
||||||
|
row-gap: 0;
|
||||||
|
justify-content: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-metrics .kv {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-metrics .kv-span {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 720px) {
|
||||||
|
.plan-metrics {
|
||||||
|
grid-template-columns: repeat(2, minmax(240px, 360px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.plan-metrics {
|
||||||
|
grid-template-columns: repeat(3, minmax(240px, 340px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1600px) {
|
||||||
|
.plan-metrics {
|
||||||
|
grid-template-columns: repeat(4, minmax(220px, 300px));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-wrap {
|
.login-wrap {
|
||||||
|
|||||||
Reference in New Issue
Block a user