Skip to content

Conversation

@dangerman
Copy link
Contributor

Fixes #226095

Before After
image
transparency-grid-scaling-dark.mov

The transparency checkerboard grid pattern was getting larger when the image preview was zoomed in.
This PR moves it into its own div so it's not affected by the zoom.

padding: 0;
background-position: 0 0, 8px 8px;
background-size: 16px 16px;
border: 1px solid var(--vscode-imagePreview-border);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

--vscode-imagePreview-border isn't actually defined because I think it was inadvertently removed in #122917 so this border wasn't even rendering before this PR.

Anyway, I've kept it on the grid because otherwise it'd get zoomed in as well.

@dangerman dangerman marked this pull request as ready for review August 28, 2024 13:01
@mjbvz mjbvz added this to the September 2024 milestone Sep 3, 2024
@mjbvz mjbvz enabled auto-merge September 3, 2024 20:16
@mjbvz mjbvz merged commit 01eb47c into microsoft:main Sep 11, 2024
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 19, 2024

@dangerman I'm going to revert this PR for the upcoming release as it seems to have caused a few issues/regressions: #229019 #228263

Can you please take look at resubmitting this with a fix for those issues? Thanks!

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants