Refine archive cumulative PnL chart proportions and axis layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-10 12:14:17 +08:00
parent 8714bb6fd3
commit e4893a6306
3 changed files with 121 additions and 80 deletions
+51 -21
View File
@@ -7452,44 +7452,70 @@ body.funds-fullscreen-open {
margin: 0;
font-size: 0.72rem;
}
.archive-cum-wrap {
display: flex;
flex-direction: column;
gap: 6px;
}
.archive-cum-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 4px;
}
.archive-cum-end {
font-size: 0.78rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.archive-cum-body {
display: grid;
grid-template-columns: 3.2em 1fr;
gap: 6px;
align-items: stretch;
}
.archive-cum-yaxis {
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 0.58rem;
color: rgba(255, 255, 255, 0.42);
font-variant-numeric: tabular-nums;
padding: 2px 0 14px;
text-align: right;
}
.archive-cum-plot {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.archive-cum-chart {
width: 100%;
height: 110px;
height: 96px;
display: block;
border-radius: 8px;
background: rgba(0, 0, 0, 0.15);
background: rgba(0, 0, 0, 0.12);
}
.archive-cum-ylabel,
.archive-cum-xlabel {
fill: rgba(255, 255, 255, 0.45);
font-size: 9px;
font-family: inherit;
.archive-cum-xaxis {
display: flex;
justify-content: space-between;
font-size: 0.58rem;
color: rgba(255, 255, 255, 0.42);
font-variant-numeric: tabular-nums;
padding: 0 2px;
}
.archive-cum-zero {
stroke: rgba(255, 255, 255, 0.15);
.archive-cum-foot {
font-size: 0.62rem;
line-height: 1.35;
}
.archive-cum-grid {
stroke: rgba(255, 255, 255, 0.06);
stroke-width: 1;
stroke-dasharray: 3 3;
}
.archive-cum-area {
opacity: 0.18;
}
.archive-cum-area.archive-cum-line--up {
fill: #4cd97f;
}
.archive-cum-area.archive-cum-line--down {
fill: #ff6b6b;
.archive-cum-grid--zero {
stroke: rgba(255, 255, 255, 0.16);
stroke-dasharray: 4 4;
}
.archive-cum-line {
fill: none;
@@ -7507,12 +7533,16 @@ body.funds-fullscreen-open {
stroke: rgba(0, 0, 0, 0.35);
stroke-width: 1;
}
.archive-cum-dot.archive-cum-line--up {
.archive-cum-dot--up {
fill: #4cd97f;
}
.archive-cum-dot.archive-cum-line--down {
.archive-cum-dot--down {
fill: #ff6b6b;
}
.archive-cum-dot--last {
stroke: rgba(255, 255, 255, 0.35);
stroke-width: 1.5;
}
@media (max-width: 520px) {
.archive-viz-kpis {
grid-template-columns: 1fr;