Spaces:
Runtime error
Runtime error
Greg Claude Opus 4.7 (1M context) commited on
Commit Β·
beb5744
1
Parent(s): fbc49b3
revert(schedule-print): roll back tight print sizes and color-adjust
Browse filesUser reporta que el PDF sigue saliendo en 2 paginas pese a los apretones
en commit fbc49b3, asi que se prefiere volver al estado previo (0.5in
margin + sin overrides agresivos). El tema queda en backlog para
revisitar con otra estrategia si vuelve a surgir.
Revert volumetrico:
- @page margin 0.3in -> 0.5in
- Elimina overrides de gap/min-h/text en .schedule-print-area
- Elimina print-color-adjust:exact global
- Elimina page-break-inside: avoid
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
frontend/src/styles/global.css
CHANGED
|
@@ -28,18 +28,10 @@
|
|
| 28 |
/* ββ Print / PDF styles βββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 29 |
@page {
|
| 30 |
size: letter landscape;
|
| 31 |
-
margin: 0.
|
| 32 |
}
|
| 33 |
|
| 34 |
@media print {
|
| 35 |
-
/* Force background colors / images to print regardless of browser's
|
| 36 |
-
"Background graphics" checkbox default. */
|
| 37 |
-
*, *::before, *::after {
|
| 38 |
-
-webkit-print-color-adjust: exact !important;
|
| 39 |
-
print-color-adjust: exact !important;
|
| 40 |
-
color-adjust: exact !important;
|
| 41 |
-
}
|
| 42 |
-
|
| 43 |
/* Hide everything by default via visibility (preserves layout for our absolute positioning) */
|
| 44 |
body * { visibility: hidden; }
|
| 45 |
|
|
@@ -56,38 +48,8 @@
|
|
| 56 |
overflow: visible !important;
|
| 57 |
max-height: none !important;
|
| 58 |
padding: 0 !important;
|
| 59 |
-
page-break-inside: avoid !important;
|
| 60 |
-
break-inside: avoid !important;
|
| 61 |
}
|
| 62 |
|
| 63 |
-
/* Prevent the grid itself from splitting across pages */
|
| 64 |
-
.schedule-print-area > div,
|
| 65 |
-
.schedule-print-area .grid {
|
| 66 |
-
page-break-inside: avoid !important;
|
| 67 |
-
break-inside: avoid !important;
|
| 68 |
-
}
|
| 69 |
-
|
| 70 |
-
/* Tighter spacing in print: override compact mode further to guarantee single-page fit */
|
| 71 |
-
.schedule-print-area .grid {
|
| 72 |
-
gap: 2px !important;
|
| 73 |
-
}
|
| 74 |
-
.schedule-print-area .grid > div {
|
| 75 |
-
min-height: 0 !important;
|
| 76 |
-
}
|
| 77 |
-
/* Each schedule cell (the dayΓslot box). min-h was 40px in compact; squeeze further. */
|
| 78 |
-
.schedule-print-area [class*='min-h-'] {
|
| 79 |
-
min-height: 28px !important;
|
| 80 |
-
}
|
| 81 |
-
/* Inner block padding super tight */
|
| 82 |
-
.schedule-print-area [class*='px-1.5'][class*='py-1'] {
|
| 83 |
-
padding: 1px 4px !important;
|
| 84 |
-
}
|
| 85 |
-
/* Text smaller */
|
| 86 |
-
.schedule-print-area .text-xs,
|
| 87 |
-
.schedule-print-area .text-sm {
|
| 88 |
-
font-size: 9px !important;
|
| 89 |
-
line-height: 1.15 !important;
|
| 90 |
-
}
|
| 91 |
/* Modal overlay/box: kill background-color so they don't tint anything if visibility leaks */
|
| 92 |
.print-overlay {
|
| 93 |
background: transparent !important;
|
|
|
|
| 28 |
/* ββ Print / PDF styles βββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 29 |
@page {
|
| 30 |
size: letter landscape;
|
| 31 |
+
margin: 0.5in;
|
| 32 |
}
|
| 33 |
|
| 34 |
@media print {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
/* Hide everything by default via visibility (preserves layout for our absolute positioning) */
|
| 36 |
body * { visibility: hidden; }
|
| 37 |
|
|
|
|
| 48 |
overflow: visible !important;
|
| 49 |
max-height: none !important;
|
| 50 |
padding: 0 !important;
|
|
|
|
|
|
|
| 51 |
}
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
/* Modal overlay/box: kill background-color so they don't tint anything if visibility leaks */
|
| 54 |
.print-overlay {
|
| 55 |
background: transparent !important;
|