Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(print): give the browser print iframe a page width for gantt charts
Elian Doranf66bd61564d9
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 713971003e..7f3598fd1a 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -2694,14 +2694,15 @@ footer.webview-footer button {text-decoration: line-through;}+/* Content that sizes itself from its container while rendering (a Mermaid gantt chart) needs a+ real width: A4 minus the 2cm `@page` margins that `print.tsx` sets for the browser. */iframe.print-iframe {position: absolute;top: 0;- left: -600px;- right: -600px;- bottom: 0;- width: 0;+ left: -10000px;+ width: 170mm;height: 0;+ border: 0;}.excalidraw.theme--dark canvas {