feat(viewer): add PrintMode for browser print/PDF export
Adds RenderOptions.PrintMode flag. When true: - view.js (table filters) is not loaded - window.print() fires on page load - @media print CSS hides filters, collapses grid to single column, adds page-break hints for section cards Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -432,3 +432,45 @@ body {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* ── Print / PDF ──────────────────────────────────── */
|
||||
|
||||
@media print {
|
||||
.page-header {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page-main {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sections-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.section-card-half,
|
||||
.section-card-full {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.section-card {
|
||||
break-inside: avoid;
|
||||
page-break-inside: avoid;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.data-table tbody tr:hover {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user