fix: 数据列表改为卡片内滚动,概览卡片说明完整换行

数据表占满顶栏以下的剩余高度,横竖滚动都发生在表格内部,表头固定、分页栏始终可见。概览卡片不再把说明截成半句,放得下就换行;源文件名单过长时卡片只保留完整短句。
This commit is contained in:
2026-11-06 18:15:41 +08:00
parent 4fb44ab27a
commit c4d994df66
3 changed files with 57 additions and 20 deletions
+15 -6
View File
@@ -118,16 +118,17 @@ body.body--dark {
.etl-card-icon { font-size: 18px; color: var(--etl-muted); }
.etl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.etl-metric { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.etl-metric-head { display: flex; align-items: center; justify-content: space-between; }
.etl-metric { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.etl-metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.etl-metric-title { font-size: 13px; color: var(--etl-muted); }
.etl-metric-icon { font-size: 20px; color: var(--etl-muted); opacity: 0.6; }
.etl-metric-icon { font-size: 20px; color: var(--etl-muted); opacity: 0.6; flex-shrink: 0; }
.etl-metric-value-row { display: flex; align-items: center; gap: 8px; min-height: 34px; min-width: 0; }
.etl-metric-value { font-size: 22px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etl-metric-value { font-size: 22px; font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }
.etl-metric-value.is-muted { color: var(--etl-muted); }
.etl-metric-value.tone-neutral { color: var(--etl-text); }
.etl-metric-spinner { color: var(--etl-primary); flex-shrink: 0; }
.etl-metric-sub { font-size: 12.5px; color: var(--etl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etl-metric-notes { display: flex; flex-direction: column; gap: 2px; min-height: 18px; }
.etl-metric-sub { font-size: 12.5px; line-height: 1.45; color: var(--etl-muted); overflow-wrap: break-word; }
.tone-primary { color: var(--etl-primary); }
.tone-success { color: var(--etl-success); }
@@ -201,7 +202,14 @@ body.body--dark {
font-variant-numeric: tabular-nums;
}
.etl-data-summary.tone-danger { color: var(--etl-danger); }
.etl-data-table .q-table__middle { overflow-x: auto; }
.etl-data-card {
display: flex; flex-direction: column; min-height: 420px;
height: calc(100vh - 109px); height: calc(100dvh - 109px);
}
.etl-data-card > :not(.etl-data-table) { flex-shrink: 0; }
.etl-data-table { flex: 1 1 auto; min-height: 0; }
.etl-data-table .q-table__middle { flex: 1 1 auto; min-height: 0; overflow: auto; }
.etl-data-table thead tr:first-child th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--etl-border); }
.etl-data-table tbody td { white-space: nowrap; }
.etl-cell-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etl-net {
@@ -292,6 +300,7 @@ body.body--dark {
.etl-dialog-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.etl-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.etl-data-search, .etl-data-sort { width: 100%; }
.etl-data-card { height: calc(100vh - 93px); height: calc(100dvh - 93px); }
}
</style>
"""