fix: report preview is always an A4 sheet, scaled to fit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 00:09:17 -03:00
1 parent b267b98f18
commit f27d8441a9
2 files changed
+31 -7

No files matched your search

+4 -2
View File
@@ -10,5 +10,7 @@
.rpt-status { display: flex; gap: 10px; align-items: center; font-size: .8125rem; color: var(--ink-muted); }
.rpt-status[hidden] { display: none; }
.rpt-sheetwrap { background: var(--surface-sunken, rgba(127, 127, 127, .12)); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: clamp(6px, 2vw, 20px); min-width: 0; }
.rpt-frame { display: block; width: 100%; max-width: 900px; height: calc(100vh - 220px); min-height: 520px; margin: 0 auto; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
@media (max-width: 600px) { .rpt-actions { margin-left: 0; width: 100%; } .rpt-actions .btn { flex: 1; } .rpt-frame { height: 75vh; min-height: 420px; } }
.rpt-fit { position: relative; max-width: 794px; margin: 0 auto; overflow: hidden; }
/* always an A4 sheet (794 px wide, the full report height); reports.js scales it to fit */
.rpt-frame { display: block; width: 794px; height: 1123px; border: 0; background: #fff; transform-origin: 0 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
@media (max-width: 600px) { .rpt-actions { margin-left: 0; width: 100%; } .rpt-actions .btn { flex: 1; } }