feat:调整表格模式展示内容

This commit is contained in:
hzm
2026-02-05 21:04:52 +08:00
parent bcf5087259
commit d4b8dbb23b
2 changed files with 155 additions and 16 deletions

View File

@@ -419,7 +419,7 @@ input[type="number"] {
.table-row {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1.5fr 60px;
grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr 60px;
align-items: center;
gap: 12px;
padding: 12px 24px !important;
@@ -437,7 +437,7 @@ input[type="number"] {
.table-header-row {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1.5fr 60px;
grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr 60px;
gap: 12px;
padding: 16px 24px;
background: rgba(255, 255, 255, 0.05);
@@ -486,30 +486,53 @@ input[type="number"] {
display: none;
}
.table-row {
grid-template-columns: 1fr 80px 80px;
grid-template-columns: 1fr 80px 100px;
grid-template-areas:
"name value change"
"name time action";
"name time profit";
gap: 4px 12px;
padding: 12px !important;
}
.name-cell { grid-area: name; }
.value-cell { grid-area: value; }
.change-cell { grid-area: change; }
.profit-cell { grid-area: profit; }
.time-cell {
grid-area: time;
justify-content: flex-end;
}
.action-cell {
grid-area: action;
justify-content: flex-end;
}
.action-cell { display: none; }
.table-cell.time-cell span {
font-size: 10px !important;
}
}
.stat-compact .up { color: var(--danger); }
@media (max-width: 768px) {
.action-cell .danger {
display: none;
}
}
.swipe-action-bg {
position: absolute;
top: 1px; /* 留出一点缝隙,或者与 border 对齐 */
bottom: 1px;
right: 0;
width: 80px;
background: linear-gradient(180deg, #ef4444, #f87171);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
color: #2b0b0b;
z-index: 0;
font-size: 12px;
font-weight: 600;
cursor: pointer;
box-shadow: inset 10px 0 20px -10px rgba(0,0,0,0.2); /* 增加一点内阴影,增加层次感 */
}
.stat-compact .down { color: var(--success); }
.filter-bar {