fix(web): add print margins and scale wide tables to fit the page#238
Merged
Conversation
The native print view used a zero-margin @page with an auto-layout table, so the table ran edge to edge and wide tables overflowed the sheet and were clipped on the right. Add a 1cm page margin and switch the printed table to a fixed layout with even, page-width columns (neutralizing the on-screen auto-size widths). Long cell values now wrap instead of spilling past the column, so the whole table scales down to fit the printable area without cutting content.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Improves the native browser print view (Ctrl+P) for the task/patient tables.
Previously the print stylesheet used a zero-margin
@pagetogether with anauto-layout table, so:
Changes (
web/style/table-printing.css, print media only)1cmpage margin on every edge for breathing room.table-layout: fixedwith even, page-widthcolumns, and neutralize the on-screen auto-size per-column widths
(
.print-content colgroup col { width: auto }). This makes a wide tablescale down to the printable area instead of overflowing.
word-break: break-word/overflow-wrap: anywhere) so content reflows within its (now narrower)column rather than being cut at the page margin.
Net effect: margins are added and the whole table scales to fit the page
without cutting content.
Notes
Print-media CSS only — no runtime/TS behavior changes. Builds on the
already-merged #237 (inline-editable property cells now print).
https://claude.ai/code/session_01Pz8wqwQhDmEKGpHayg8CPs
Generated by Claude Code