Skip to content

fix: content crops on PDF export preview on mozilla based browsers#43

Open
whitesideofthesun wants to merge 1 commit intoRenovamen:mainfrom
whitesideofthesun:PDF-Export-Content-Crop-Issue
Open

fix: content crops on PDF export preview on mozilla based browsers#43
whitesideofthesun wants to merge 1 commit intoRenovamen:mainfrom
whitesideofthesun:PDF-Export-Content-Crop-Issue

Conversation

@whitesideofthesun
Copy link

This PR Fixes #34

When printing resumes in Firefox, using height: 100vh on page elements causes content to be cropped at the bottom. This occurs because:

  1. Viewport height mismatch: In print mode, 100vh refers to the browser viewport height, which may be smaller than the actual paper size (e.g., A4 ≈ 1123px at 96dpi)

Solution

Use height: auto along with min-height: 100vh instead of height: 100vh for page elements in print mode.
Since #resume-preview has height: auto (content-based), this allows elements to grow with content.

Testing

  • Tested print preview in Firefox - content no longer crops
  • Verified print preview in Chrome - works correctly
  • Tested with single-page resumes
  • Tested with multi-page resumes
  • Verified page breaks occur correctly

Screenshots

Screenshot 2025-11-17 at 1 04 46 PM Screenshot 2025-11-17 at 1 05 02 PM

heridotlife added a commit to heridotlife/oh-my-cv that referenced this pull request Dec 23, 2025
- Merge upstream PRs Renovamen#29, Renovamen#33, Renovamen#36, Renovamen#37, Renovamen#38, Renovamen#39, Renovamen#41, Renovamen#42, Renovamen#43
- Upgrade project dependencies
- Update README with credits to original author
- Fix build issues:
  - Resolve circular dependencies in composables/stores
  - Fix YAML syntax in FR translation
  - Add theme_color to PWA manifest
  - Increase Vite chunk size warning limit
  - Update browserslist/caniuse-lite
  - Temporarily disable web fonts to prevent build timeouts
heridotlife added a commit to heridotlife/oh-my-cv that referenced this pull request Dec 23, 2025
- Merge upstream PRs Renovamen#29, Renovamen#33, Renovamen#36, Renovamen#37, Renovamen#38, Renovamen#39, Renovamen#41, Renovamen#42, Renovamen#43
- Upgrade project dependencies
- Update README with credits to original author
- Fix build issues:
  - Resolve circular dependencies in composables/stores
  - Fix YAML syntax in FR translation
  - Add theme_color to PWA manifest
  - Increase Vite chunk size warning limit
  - Update browserslist/caniuse-lite
  - Temporarily disable web fonts to prevent build timeouts
  - Disable Nuxt DevTools to resolve dev server crash
heridotlife added a commit to heridotlife/oh-my-cv that referenced this pull request Dec 23, 2025
- Merge upstream PRs Renovamen#29, Renovamen#33, Renovamen#36, Renovamen#37, Renovamen#38, Renovamen#39, Renovamen#41, Renovamen#42, Renovamen#43
- Upgrade project dependencies
- Bump version to 0.1.2
- Update README and repo references to heridotlife/oh-my-cv
- Add Indonesian and Japanese translations (i18n)
- Fix build issues:
  - Resolve circular dependencies in composables/stores
  - Fix YAML syntax in FR translation
  - Add theme_color to PWA manifest
  - Increase Vite chunk size warning limit
  - Update browserslist/caniuse-lite
  - Temporarily disable web fonts to prevent build timeouts
  - Disable Nuxt DevTools to resolve dev server crash
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 Export Rendering Truncates Unexpectedly.

1 participant