Skip to content

feat: print displayed messages - #109

Merged
Rasalas merged 2 commits into
mainfrom
feat/print-message
Oct 13, 2026
Merged

Rasalas merged 2 commits into
mainfrom
feat/print-message

Conversation

@Rasalas

@Rasalas Rasalas commented Oct 13, 2026

Copy link
Copy Markdown
Owner

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:

  • 646 Jest tests pass, including print routing and error recovery.
  • ESLint and the production web build pass.
  • Rust check, build and library test compilation pass on macOS.
  • Native print button and Cmd+P checked in light and dark themes. The 60-section EML produces 9 pages, including the final section and end marker, with margins and no app controls.
  • Added the long EML fixture and documented the native dialog regression check. Offscreen WKWebView PDF generation alone does not reproduce this dialog-specific bug.

Closes #107.

Rasalas and others added 2 commits October 13, 2026 00:59
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.
@Rasalas
Rasalas merged commit 8cb76de into main Oct 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: an option to Print the message

1 participant