-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fit large images in the window when viewing single files #5754
Conversation
Thank you! This doesn't affect images in commits, which is good 👍 4218456#diff-f44b12b0416bb268cf2491ea46a5f8deae4823068722a5bfcc61d0f87d371169 |
It only limits the max size of images, it shouldn't affect any images that are smaller. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related link with potentially more cases to test or ignore https://docs.github.com/en/repositories/working-with-files/using-files/working-with-non-code-files
Co-authored-by: Federico Brigante <me@fregante.com>
CSS only runs on blob image previews because of |
Closes #5740
Adds the following css to restrict image blob sizes:
Test URLs
https://github.com/KatsuteDev/Mal4J/blob/main/assets/banner-sq.png
Screenshot