refined-github / refined-github

:octocat: Browser extension that simplifies the GitHub interface and adds useful features
MIT License
24.8k stars 1.49k forks source link

Max image size for image previews #5740

Closed Katsute closed 2 years ago

Katsute commented 2 years ago

Description

For very large images it makes more sense to resize it to fit the screen, rather than crop it (current behavior). A simple max-height and max-width for image previews would make these pages easier to see.

Screenshot

Current:

github com_KatsuteDev_Mal4J_blob_main_assets_banner-sq png

Proposed:

github com_KatsuteDev_Mal4J_blob_main_assets_banner-sq png (1)

Example URLs

https://github.com/KatsuteDev/Mal4J/blob/main/assets/banner-sq.png

fregante commented 2 years ago

If it needs just 3 lines of CSS, please send a PR to add them to refined-GitHub.css