User tests: Successful: 0 Unsuccessful: 0
Pull Request for Issue #34355 .
By adding a few lines of CSS, we are able to ensure that custom logos in the admin template are not warped even if they don't fit the exact dimensions of the space available.
System > Templates > Administrator Template Styles
.Image Settings
."Brand Large" and "Brand Small" images are stretched and warped to fit specific pixel dimensions regardless of their original proportions or size.
"Brand Large" and "Brand Small" display with the correct aspect ratio, within the space available.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Templates (admin) NPM Change |
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-07-27 20:47:48 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
NPM Resource Changed
?
|
Nice! that was quick.
Thankyou <3 And good to see you around again - even if just for a quick PR!
It's a pleasure! I'm always around, just not always with the energy to participate much :) I will try to do more as I can.
I was going to ask if this needed to be done for the login logo as well - but that image seems to work fine without it - weird. Not sure I will ever truly get css
I was going to ask if this needed to be done for the login logo as well - but that image seems to work fine without it - weird. Not sure I will ever truly get css
I checked; the login logo does not have hard-coded dimensions like the header logos. It has a max-height, and that's it. (Probably, it should also have a max-width...but that's another PR for another day.) Max-height and max-width are an alternative way of solving this same problem.
Merged too quickly. @richard67 is correct it needs adjusting for RTL. Will do a PR now
Merged too quickly. @richard67 is correct it needs adjusting for RTL. Will do a PR now
Thanks Brian!
Thankyou <3 And good to see you around again - even if just for a quick PR!