Change class if logo has portrait format
What does this MR do and why?
Checks if the uploaded logo has a portrait format and if so sets the width of the image.
Past attempts:
- CSS solution, !127782 (closed)
- Backend solution, !131167 (closed)
This is the JavaScript solution.
Closes #378719 (closed)
Screenshots or screen recordings
Before | After | |
---|---|---|
Landscape format logo | ||
Square format logo | ||
Portrait format | Not affected | Not affected |
How to set up and validate locally
- Go to /admin/application_settings/appearance and upload logos of different sizes.
- In an incognito window, go to
/users/sign_in
- Check dimensions of logo.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eduardo Sanz García