fix(web): 资源预览 - 请求明细资源失效时显示预览占位
This commit is contained in:
@@ -4334,9 +4334,9 @@
|
||||
.task-record-thumb { position: relative; display: grid; width: 84px; height: 60px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--foreground) 4%, transparent); padding: 0; color: color-mix(in srgb, var(--foreground) 28%, transparent); }
|
||||
/* 媒体脱离 Grid 固有尺寸计算,避免竖图按原始宽高比把固定缩略图撑出任务行。 */
|
||||
.task-record-thumb img, .task-record-thumb video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
/* 资源已被删除或失效时,由组件接管原生破图,任务记录本身仍保持可读。 */
|
||||
.task-media-unavailable { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: color-mix(in srgb, var(--foreground) 38%, transparent); font-size: var(--fs-tiny); line-height: 1.25; text-align: center; }
|
||||
.task-media-unavailable > svg { width: 18px; height: 18px; flex: 0 0 auto; }
|
||||
/* 资源已被删除或失效时,由组件接管原生破图,相关页面仍保持可读。 */
|
||||
.media-unavailable { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: color-mix(in srgb, var(--foreground) 38%, transparent); font-size: var(--fs-tiny); line-height: 1.25; text-align: center; }
|
||||
.media-unavailable > svg { width: 18px; height: 18px; flex: 0 0 auto; }
|
||||
.task-record-thumb:disabled { cursor: default; }
|
||||
.task-record-meta { display: flex; min-width: 0; align-items: center; gap: 8px; margin-top: 7px; overflow: hidden; color: color-mix(in srgb, var(--foreground) 40%, transparent); font-size: var(--fs-label); white-space: nowrap; }
|
||||
.task-record-meta-canvas { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
|
||||
@@ -4391,7 +4391,7 @@
|
||||
.task-grid-card.is-attention .task-grid-body { background: color-mix(in srgb, var(--palette-status-error) 5%, transparent); }
|
||||
.task-grid-thumb { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--foreground) 4%, transparent); color: color-mix(in srgb, var(--foreground) 30%, transparent); }
|
||||
.task-grid-thumb > svg { width: 26px; height: 26px; }
|
||||
.task-grid-thumb .task-media-unavailable > svg { width: 26px; height: 26px; }
|
||||
.task-grid-thumb .media-unavailable > svg { width: 26px; height: 26px; }
|
||||
.task-grid-thumb img, .task-grid-thumb video { width: 100%; height: 100%; object-fit: cover; }
|
||||
.task-grid-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: color-mix(in srgb, var(--background) 58%, transparent); opacity: 0; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity 200ms ease-out; }
|
||||
.task-grid-card:hover .task-grid-overlay, .task-grid-card:focus-within .task-grid-overlay { opacity: 1; }
|
||||
|
||||
Reference in New Issue
Block a user