Mermaid-diagram: Zoom-button visible in PDFs

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  • Create a Mermaid-Diagramm wide enough for the zoom-button to appear.
  • Export a PDF of the page.

Did you read and follow the Troubleshooting Guide ? [Yes/No]

No

Expected result

The Mermaid diagram has no zoom-button in the export, as it would be non-functional in the PDF.

Actual result

The diagram has a zoom-button.

Environment

SYSTEM INFO:
Obsidian version: 1.15.0
Installer version: 1.5.11
Operating system: Windows 10 Enterprise 10.0.26300
Login status: logged in
Language: de
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: light
Community theme: *** 1.0.0
Snippets enabled: 2
Restricted mode: off
Plugins installed: 19
Plugins enabled: 13
1: Better Word Count v0.10.1
2: Unicode Search v0.7.4
3: Dataview v0.5.68
4: Copy document as HTML v0.8.1
5: Kanban v2.0.51
6: Linter v1.35.0
7: Jira Issue v2.2.0
8: Markdown to Jira Converter v1.0.1
9: LanguageTool Integration v0.4.3
10: Text Generator v0.8.7
11: Find Orphaned Images v1.3.0
12: Share Note v1.6.2
13: Whisper v1.9.1


Additional information

Temporarily fixed by

@media print { .pele-zoom {visibility: hidden !important;} }