guardian / guardian/dotcom-rendering

Most Viewed footer header appearing without content in print view + large whitespace taking up pages at end

Open
#8,313 0 comments 0 reactions 0 assignees View on GitHub
Team Candidate: Fronts and Curation
Dominant language
TypeScript
Stars
274
Forks
34
Avg merge
2d 22h
Merged PRs (30d)
121

Description

These issues were reported specifically about the page when trying to print, but this occurs on the preview app before clicking the print button.

On **articles**:
- The "Most Viewed" section title appears regardless of whether there is any content in the section. (e.g on the print preview)
- The print preview has massive amounts of whitespace at the end, taking up unnecessary pages

Report:

> Our lawyers are reporting that recently (confirmed by more than one user) when they print articles via Composer’s Viewer they get a spurious Most viewed title (only) and extra empty pages.
>
> When trying to print directly from the website, I get the same result. [URL](https://preview.gutools.co.uk/business/2023/jul/19/uk-inflation-interest-rates-bank-of-england); Firefox left, Chrome right (sic!):
> ![image](https://github.com/guardian/dotcom-rendering/assets/43961396/f878d8e1-18a3-43fb-b8eb-90529398fae6)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.