diff --git a/frontend/print-preview.css b/frontend/print-preview.css index 0bdcca0..768c6ed 100644 --- a/frontend/print-preview.css +++ b/frontend/print-preview.css @@ -201,6 +201,21 @@ overflow: hidden; } +/* Ensure calendar and grid have proper height constraints for row distribution */ +.print-preview-paper .calendar { + height: 100%; +} + +.print-preview-paper .calendar-grid { + flex: 1 !important; /* Fill remaining space after header in flex container */ + min-height: 0 !important; /* Allow grid to shrink below content size in flexbox */ + height: auto !important; /* Override the calc() from base styles */ +} + +.print-preview-paper .calendar-day { + min-height: 0 !important; /* Allow day cells to shrink to fit in grid rows */ +} + /* Hide UI elements in preview */ .print-preview-paper .app-sidebar, .print-preview-paper .print-button,