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

4266 - PDF - page space #4410

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from
Draft

4266 - PDF - page space #4410

wants to merge 2 commits into from

Conversation

sorja
Copy link
Contributor

@sorja sorja commented Feb 27, 2025

No description provided.

@sorja sorja requested a review from minotogna February 27, 2025 11:47
@sorja sorja self-assigned this Feb 27, 2025
@sorja sorja linked an issue Feb 27, 2025 that may be closed by this pull request

{analysisAndProcessing && <AnalysisDescriptions analysisAndProcessing={analysisAndProcessing} />}
</div>
{print && !onlyTables && <div className="page-break" />}
Copy link
Member

Choose a reason for hiding this comment

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

Each description should be rendered in its own page . Is it the case ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The main problem as seen in the issue that sometimes when we have empty descriptions or different length descriptions we might get only couple of symbols (e.g. on empty we get a dash) on a single page
#4266

One thing I was thinking of we can try to group the subheader with the content if it's possible (I will investigate)

Current PR is proposed fix for the issue, if page-break for descriptions is preferred, let me know

Copy link
Member

Choose a reason for hiding this comment

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

That was the best compromise we found in past assessment to let the content fit .
We should not alter this behavior, otherwise we'll create other problems

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, should I look into grouping the title with the content to avoid empty pages containig only - ?
Or we can close this PR also

Copy link
Member

Choose a reason for hiding this comment

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

Sorry @sorja I think the issue is not about dash or descriptions in single page .
I saw some screenshots in the issue that are not about descriptions . Am I mistaken ?

Copy link
Member

Choose a reason for hiding this comment

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

Also , if there's an empty page after a description , can it be fixed as well ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, should we roll back the change regarding descriptions?
I will remove the page break after the chart

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

Also , if there's an empty page after a description , can it be fixed as well ?

I will investigate the issue more in depth and let you know
I think grouping the subheader with the content will resolve the issue

Copy link
Member

Choose a reason for hiding this comment

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

What do you mean grouping ?
The layout should not change
See the 2020 report on the fra website

Copy link
Member

Choose a reason for hiding this comment

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

Maybe you want to work on another issue ?

@sorja sorja marked this pull request as draft February 27, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDF - page space
2 participants