Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(print): use css @page landscape instead of content rotation #4347

Merged
merged 1 commit into from Dec 31, 2023

Conversation

usu
Copy link
Member

@usu usu commented Dec 29, 2023

Since chrome 118 (included in browserless/chrome:1.61.0-puppeteer-21.4.1) mixing of page orientation is supported.
So we can now use proper css page rules instead of the content rotation hack.

Before (on dev):
GRGR-dev.pdf

After (on PR):
GRGR-PR4347.pdf

@BacLuc BacLuc added the deploy! Creates a feature branch deployment for this PR label Dec 29, 2023
Copy link

github-actions bot commented Dec 29, 2023

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

Comment on lines +20 to +23
.tw-break-after-page.landscape-page {
max-width: 1123px; /* page width: A4 landscape width of 297mm at 96dpi */
min-height: 794px; /* page height: A4 landscape height of 210mm at 96dpi */
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for the developer HTML preview which you can see in the iframe on the print page.

@usu usu added this pull request to the merge queue Dec 31, 2023
Merged via the queue into ecamp:devel with commit fbabd27 Dec 31, 2023
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy! Creates a feature branch deployment for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants