Skip to content

feat: auto-adjust PDF zoom to fit container width#6286

Merged
vitormattos merged 1 commit intomainfrom
feat/auto-fit-pdf-width
Dec 31, 2025
Merged

feat: auto-adjust PDF zoom to fit container width#6286
vitormattos merged 1 commit intomainfrom
feat/auto-fit-pdf-width

Conversation

@vitormattos
Copy link
Copy Markdown
Member

No description provided.

Implements automatic zoom calculation to ensure PDFs fit horizontally
within the viewer container, preventing overflow.

- Calculates optimal scale based on widest page and container width
- Handles PDFs with multiple pages of different widths
- Adapts zoom on window resize
- Uses 200ms delay to avoid PDF.js render conflicts

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos added this to the Next Major (33) milestone Dec 31, 2025
@vitormattos vitormattos self-assigned this Dec 31, 2025
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 31, 2025
@vitormattos vitormattos requested a review from Copilot December 31, 2025 04:52
@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable31

@vitormattos vitormattos merged commit 27812ed into main Dec 31, 2025
63 checks passed
@vitormattos vitormattos deleted the feat/auto-fit-pdf-width branch December 31, 2025 04:53
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 31, 2025

This comment was marked as resolved.

@vitormattos
Copy link
Copy Markdown
Member Author

ref: #6286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants