Fix PDF report layout: hazard name overlap, disclaimer page break, and data source cleanup - #1055
Merged
Merged
Conversation
- Fix hazard name overlap on cover page by overriding fixed 72px width with auto sizing, reducing font-size, and adding horizontal padding - Prevent disclaimer from splitting across pages with page-break-before - Comment out data source section in PDF report (already disabled elsewhere) - Adjust footer margin on cover page
arnaud-morvan
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
After updating hazard names (e.g. "Tropical cyclone", "Water scarcity", "Extreme heat"), the PDF cover page had overlapping text labels because
report.lessenforces a fixed width on hazard list items. Additionally, the disclaimer section was splitting across two pages, and the data source section was still visible in the PDF despite being commented out in the web report.This PR resolves the layout issues by adjusting the PDF print styles so that hazard items size dynamically to fit their content with appropriate padding, and forces a page break before the disclaimer section. The data source snippet has also been commented out in the PDF report template to match the rest of the application.
Screenshots