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: show correct scale factor of images #5201

Merged
merged 4 commits into from Feb 26, 2024
Merged

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Feb 25, 2024

Before this PR, images had the static 1x, 2x, and 3x labels. 1x and 2x were correct, while 3x was incorrect (except for 7TV), since these images were four times larger than the original one. This PR updates the labels for the items to be the factor based on the smallest image.

I'll update the 7TV code to use 4x (when available) in another PR (could also do it here if you want).

Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

Not really a bugfix, just a difference in what 1x/2x/3x/4x represents.
Changelog entry could be Minor & something along the lines of "Image links now reflect the scale of the image instead of its internal label" or "Image links now reflect the scale of the image instead of the image host's label"

@pajlada pajlada merged commit 4315c43 into Chatterino:master Feb 26, 2024
17 checks passed
@Nerixyz Nerixyz deleted the fix/4x-ify branch February 26, 2024 17:13
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.

None yet

2 participants