hub放大排列

This commit is contained in:
dekun
2026-05-25 07:37:33 +08:00
parent 80cc26ef27
commit 7beeb3500c
3 changed files with 36 additions and 3 deletions
+34 -1
View File
@@ -533,7 +533,7 @@ body.hub-fullscreen-open {
.exchange-fullscreen-panel {
position: relative;
z-index: 1;
max-width: 820px;
max-width: min(1800px, 98vw);
margin: 0 auto;
}
@@ -604,6 +604,18 @@ body.hub-fullscreen-open {
margin-bottom: 14px;
}
/* 全屏放大:持仓卡片横向排列 */
.exchange-fullscreen .hub-pos-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 14px;
align-items: start;
}
.exchange-fullscreen .hub-pos-card.pos-card {
min-width: 0;
}
/* 对齐实盘「实时持仓」pos-card */
.hub-pos-card.pos-card {
background: rgba(10, 16, 28, 0.95);
@@ -730,6 +742,17 @@ body.hub-fullscreen-open {
font-weight: 500;
}
.hub-pos-card .pos-value.pnl-pos {
color: var(--green);
font-weight: 600;
text-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
}
.hub-pos-card .pos-value.pnl-neg {
color: var(--red);
font-weight: 600;
}
.hub-pos-card .pos-footer {
display: flex;
flex-wrap: wrap;
@@ -1158,6 +1181,16 @@ button.btn-sm {
.pnl-neg {
color: var(--red);
}
.data-table td.pnl-pos {
color: var(--green);
font-weight: 600;
}
.data-table td.pnl-neg {
color: var(--red);
font-weight: 600;
}
.err {
color: var(--red);
font-size: 12px;