Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Avoid empty first page when printing in Firefox

Henriette Dargee0e2671e4c9e
diff --git a/frontend/src/global_styles/layout/_print.sass b/frontend/src/global_styles/layout/_print.sass
index c9437bcd3f8..59f82e1d4b3 100644
--- a/frontend/src/global_styles/layout/_print.sass
+++ b/frontend/src/global_styles/layout/_print.sass
@@ -63,6 +63,10 @@
h3
font-size: 1.17em
- .-browser-firefox *
- // Needed for Firefox only. Otherwise, background-colors (e.g. of buttons) are not correctly printed
- print-color-adjust: exact
+ .-browser-firefox
+ #content-wrapper
+ // Needed to prevent an empty first page when printing in Firefox
+ display: inline-block
+ *
+ // Needed for Firefox only. Otherwise, background-colors (e.g. of buttons) are not correctly printed
+ print-color-adjust: exact