Repository navigation
feat: print displayed messages - #109
Merged
Merged
Conversation
Adds a print button to the message header and a Ctrl/Cmd+P shortcut. Print styles reduce the page to the message itself and always print light, keeping the sender's original colors. Grants the Tauri webview print permission needed on macOS. Closes #107 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply 15 mm margins to NSPrintInfo before native pagination instead of letting the print panel apply CSS page margins after computing the page count. Preserve CSS margins for browser and other desktop printing. Verified the native print button and Cmd+P in light and dark themes. The 60-section fixture now prints completely on 9 pages. Add print routing tests and document the native regression check.
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.
Adds a print button to the message header and Ctrl/Cmd+P to print the displayed message without the sidebar or action buttons. Printed pages use a light background in both app themes.
The macOS print panel could calculate the page count before applying CSS page margins, truncating the long test message during section 49. The native print command now applies 15 mm margins to NSPrintInfo before pagination. CSS page margins remain enabled for browser and other desktop printing.
Validation:
Closes #107.