🐛 fix: 合并回收站信息卡片自适应布局
* 让四张文件信息卡片随内容变宽,空间不足时整张换行 * 合入通过单元、集成、覆盖率和测试站多屏宽验证的卡片布局
This commit is contained in:
commit
f2c5ad8a49
1 file changed
+5
-7
@@ -52,16 +52,14 @@ const fields = computed(() => [
|
|||||||
.trash-item-info--dark { color: #dbe9ee; --trash-muted: #a9bdc2; --trash-line: #495765; --trash-surface: #303946; }
|
.trash-item-info--dark { color: #dbe9ee; --trash-muted: #a9bdc2; --trash-line: #495765; --trash-surface: #303946; }
|
||||||
.trash-file-name { overflow-wrap: anywhere; }
|
.trash-file-name { overflow-wrap: anywhere; }
|
||||||
.trash-file-meta dt, .trash-time-label { color: var(--trash-muted); }
|
.trash-file-meta dt, .trash-time-label { color: var(--trash-muted); }
|
||||||
.trash-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
.trash-detail-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
|
||||||
.trash-detail-card { margin: 0; min-height: 72px; background: var(--trash-surface) !important; border-color: var(--trash-line) !important; }
|
.trash-detail-card { flex: 0 1 auto; width: max-content; max-width: 100%; margin: 0; min-height: 72px; background: var(--trash-surface) !important; border-color: var(--trash-line) !important; }
|
||||||
.trash-item-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: center; grid-column: 1 / -1; }
|
.trash-item-actions { display: flex; flex-wrap: wrap; flex: 1 0 100%; gap: 8px; align-items: center; }
|
||||||
@container trash-record (min-width: 620px) {
|
@container trash-record (min-width: 620px) {
|
||||||
.trash-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
.trash-item-actions { justify-content: flex-end; }
|
||||||
.trash-item-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; grid-column: 1 / -1; }
|
|
||||||
}
|
}
|
||||||
@container trash-record (min-width: 1000px) {
|
@container trash-record (min-width: 1000px) {
|
||||||
.trash-detail-grid { grid-template-columns: minmax(100px,125px) minmax(90px,110px) minmax(100px,130px) minmax(140px,180px) minmax(400px,1fr); align-items: center; gap: 10px; }
|
.trash-item-actions { flex: 1 1 auto; }
|
||||||
.trash-item-actions { grid-column: auto; align-items: center; }
|
|
||||||
}
|
}
|
||||||
.trash-item-actions :deep(button) { white-space: nowrap; }
|
.trash-item-actions :deep(button) { white-space: nowrap; }
|
||||||
.trash-detail-grid .trash-detail-card:hover { transform: translateY(-2px) !important; }
|
.trash-detail-grid .trash-detail-card:hover { transform: translateY(-2px) !important; }
|
||||||
|
|||||||
Reference in new issue
Block a user