feat: add report card screenshot functionality

- Add screenshot button in journal HTML
- Implement downloadReportCardScreenshot() with html-to-image
- Add styles for screenshot modal
- New dependency: html-to-image.js
This commit is contained in:
dev
2026-10-29 11:23:16 +03:00
parent dd934baf5d
commit a97455030a
3 changed files with 61 additions and 0 deletions
+5
View File
@@ -1226,6 +1226,11 @@ body.report-card-open .report-fields{display:flex}
.report-fields__actions{display:flex;gap:10px}
.report-fields__link{background:none;border:none;color:var(--accent);cursor:pointer;font-size:.78rem;font-weight:600;padding:0;font-family:inherit}
.report-fields__link:hover{text-decoration:underline}
.report-fields__shot{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;background:var(--accent);color:#fff;border:none;border-radius:10px;padding:9px 12px;font-family:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.report-fields__shot svg{width:16px;height:16px;flex:none}
.report-fields__shot:hover{filter:brightness(1.06)}
.report-fields__shot[disabled]{opacity:.6;cursor:default}
.report-fields__shot-text{white-space:nowrap}
.report-fields__list{display:flex;flex-direction:column;gap:2px;max-height:min(56vh,420px);overflow:auto}
.report-fields__item{
display:flex;