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

maintain aspect ratio for auth icons #26488

Closed
wants to merge 1 commit into from

Commits on Aug 14, 2023

  1. maintain aspect ratio for auth icons

    - When specifying an icon URL for a authentication source, it's forced
    to be an width and height of 20px. However this didn't take into account
    that icons could have an different aspect ratio of 1:1.
    - This patch fixes that by instead using `max-width` and `max-height`
    which will respect other aspect ratios.
    - Resolves https://codeberg.org/forgejo/forgejo/issues/1234
    
    Refs: https://codeberg.org/forgejo/forgejo/pulls/1241
    
    (cherry picked from commit bd915b867057c1aaae1b4a33a83a5703cabda462)
    Gusted authored and earl-warren committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    4c1cc31 View commit details
    Browse the repository at this point in the history