Fixed If logo width/height is not set, switching to light/dark breaks logo

Russ

Well-known member
Affected version
2.3 Beta 5
Ideally, you should set your logo width/height but if either Public logo width or Public logo height is not filled out (or both), it results in the logo loading width="0" or height="0" when switching to light/dark

Easy steps to reproduce:
1.) Remove "Public logo width" value, leaving it blank
2.) Switch style variation to dark
3.) Look at logo

It loads the code like so:

Code:
<img width="0" height="36" alt="Pixel Exit | Dev" src="/dev/styles/default/xenforo/xenforo-logo.svg">

Refreshing page fixes it to:

Code:
<img src="/dev/styles/default/xenforo/xenforo-logo.svg" srcset="" width="" height="36" alt="Pixel Exit | Dev">
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 6).

Change log:
Fix a few issues with picture variations
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom