Skip to content

fix(document): keep the activity section out of printed documents - #11156

Merged
ArtyomSavchenko merged 1 commit into
hcengineering:developfrom
MichaelUray:fix/document-print-hide-activity
Oct 19, 2026
Merged

ArtyomSavchenko merged 1 commit into
hcengineering:developfrom
MichaelUray:fix/document-print-hide-activity

Conversation

@MichaelUray

Copy link
Copy Markdown
Contributor

Fixes #9054

Problem and change

Printing a document (browser print or Save as PDF) also printed the
activity feed and the comment input below the content. Documents are
rendered through the generic Panel from @hcengineering/panel, which
renders the activity without any print styling, unlike controlled
documents, which already mark their activity container as no-print.

Panel gets a printActivity property (default true, so other panels keep
printing their activity as before). When it is false, the activity is
wrapped in a display: contents container with the no-print class, so the
screen layout stays the same and the section is left out of print. The
document editor sets printActivity={false}.

Tests

No unit test (template/CSS). Checked on a self-hosted instance with print media emulation: a document's activity section and comment input are hidden in print, while a tracker issue still prints its activity.

Printing a document (browser print or Save as PDF) also printed the
activity feed and the comment input below the content. Documents are
rendered through the generic Panel from @hcengineering/panel, which
renders the activity without any print styling, unlike controlled
documents, which already mark their activity container as no-print.

Panel gets a printActivity property (default true, so other panels keep
printing their activity as before). When it is false, the activity is
wrapped in a display: contents container with the no-print class, so the
screen layout stays the same and the section is left out of print. The
document editor sets printActivity={false}.

Fixes hcengineering#9054

Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
@ArtyomSavchenko
ArtyomSavchenko merged commit b0ddd6e into hcengineering:develop Oct 19, 2026
13 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.

Make configurable what show in exported PDF

2 participants