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

Fix: Gradient fills on nodes if zoomed screen #460

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

brandonreid
Copy link
Contributor

@brandonreid brandonreid commented Mar 15, 2024

Resolves #459

Nodes were appearing to have gradient fills when the browser was zoomed:
image

After digging into the PIXI discord for a while, it seems that this happens when floats are provided for the resolution (e.g. 2.5 or 1.7777). Rounding this resolution up to a whole number solves the issue and errs on the side of higher resolution rather than lower, so things still render nice and sharp.

image

@brandonreid brandonreid requested a review from a team as a code owner March 15, 2024 11:52
Copy link

netlify bot commented Mar 15, 2024

Deploy Preview for prefect-graphs ready!

Name Link
🔨 Latest commit 57c8261
🔍 Latest deploy log https://app.netlify.com/sites/prefect-graphs/deploys/65f4368bf1f5540008f07bcb
😎 Deploy Preview https://deploy-preview-460--prefect-graphs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@pleek91 pleek91 left a comment

Choose a reason for hiding this comment

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

Nice!

@brandonreid brandonreid merged commit 86cc1ad into main Mar 15, 2024
4 checks passed
@brandonreid brandonreid deleted the fix/gradient-node-fills branch March 15, 2024 13:32
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.

Browser zoom results in gradient node fills
2 participants