feat(journal): превью последних вложений и фото с занятий в карточке отчёта

- эндпоинты /api/students/image-files-by-name и /api/students/works-by-name (requireAuth, branchScope)
- галерея вложений карточки грузится асинхронно по имени ученика, кэш по имени
- новый тумблер «Фото на занятиях» (localStorage reportCardStudentWorks)
- выравнивание высоты галереи, обработка landscape-фото, CSS .sc-w__*
- shorts: правка выравнивания автора в строке
This commit is contained in:
dev
2026-10-15 12:51:18 +03:00
parent 3929290635
commit 3150d41fa5
5 changed files with 255 additions and 19 deletions
+1 -1
View File
@@ -213,7 +213,7 @@
}
.shorts-skeleton { min-height:96px; background:linear-gradient(90deg,var(--bg) 25%,var(--card) 50%,var(--bg) 75%); background-size:200% 100%; animation:shorts-skeleton 1.2s ease-in-out infinite; border:1px solid var(--border) }
@keyframes shorts-skeleton { from { background-position:200% 0 } to { background-position:-200% 0 } }
.shorts-author { display:flex;align-items:center;gap:6px;flex-wrap:wrap }
.shorts-author { display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-self:flex-end;text-align:right }
.shorts-author .icon-btn { width:26px;height:26px;border-radius:7px }
.ai-btn { background:none;border:1px solid var(--border);border-radius:6px;padding:3px 9px;cursor:pointer;font-size:.76rem;color:var(--muted);display:inline-flex;align-items:center;gap:4px;margin-left:8px;vertical-align:1px }