延迟加载活动照片并增强镜像构建稳定性

This commit is contained in:
2026-11-17 13:13:33 +08:00
parent 2c9b9b946a
commit c5d92b4d27
4 changed files with 135 additions and 33 deletions
+9 -2
View File
@@ -580,14 +580,21 @@ button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px s
.settings-divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
@media (max-width: 520px) { .duty-reminder-row { flex-wrap: wrap; } .duty-row-actions { width: 100%; } }
.activity-photos { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0; }
.photo-preview { margin:14px 0; }
.photo-preview-summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#f7faf8; color:var(--muted); font-size:13px; }
.photo-preview-summary strong { color:var(--text); }
.selected-photo-summary:empty { display:none; }
.activity-photos { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; margin:12px 0 0; }
.activity-photos:empty { display:none; }
.activity-materials { margin:12px 0; display:flex; flex-direction:column; gap:8px; }
.activity-materials > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.upload-progress { margin:16px 0; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--primary-soft); }
.upload-progress p { margin:0 0 8px; font-size:13px; overflow-wrap:anywhere; }
.upload-progress progress { display:block; width:100%; height:12px; accent-color:var(--primary); }
.activity-photos img { width:120px; height:90px; object-fit:cover; border-radius:8px; border:1px solid var(--line); cursor:zoom-in; }
.activity-photos img { display:block; width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; border-radius:8px; border:1px solid var(--line); cursor:zoom-in; background:#edf2ee; }
.activity-photos img.photo-loading { background:linear-gradient(110deg,#edf2ee 8%,#f8faf8 18%,#edf2ee 33%); background-size:200% 100%; animation:photo-shimmer 1.4s linear infinite; }
.activity-photos img.photo-error { display:grid; place-items:center; padding:10px; color:var(--muted); font-size:12px; cursor:default; }
@keyframes photo-shimmer { to { background-position-x:-200%; } }
.center-toolbar { margin-bottom:24px; }
.center-export { margin:0 0 24px; padding:16px 20px; border:1px solid var(--line); background:var(--card); border-radius:12px; }
.center-export summary { cursor:pointer; font-weight:600; }