Skip to content

Conversation

@Eetwalt
Copy link
Collaborator

@Eetwalt Eetwalt commented Jan 27, 2026

Summary

Fix logo rendering for exported images when user is zoomed in browser

How did you test this change?

Dev tools

Credit to Slothyman for this fix:
https://discord.com/channels/93055209017729024/372075546231832576/1465710634804183155

Before:
image

After:
image

@Eetwalt Eetwalt added the javascript Changes to JavaScript files label Jan 27, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a logo rendering issue in exported images when users have their browser zoomed in. The fix adjusts the scaling factor used during image capture to account for the device pixel ratio.

Changes:

  • Updated the html2canvas scale parameter to use window.devicePixelRatio instead of a hardcoded value of 1

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Eetwalt Eetwalt marked this pull request as draft January 27, 2026 14:30
@Eetwalt Eetwalt removed the request for review from ElectricalBoy January 27, 2026 14:31
@Eetwalt
Copy link
Collaborator Author

Eetwalt commented Jan 27, 2026

Back to drawing board, the setting messes up the rendering in other parts:
https://discord.com/channels/93055209017729024/372075546231832576/1465715400464662726

@Eetwalt Eetwalt closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Changes to JavaScript files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants