Troubleshooting Bug: Imported SVG Badges Not Displaying

After importing an SVG image as a badge, a bug occurred where the badge could not be displayed properly:


Icon that was set:

1 Like

I recognize that SVG! I think that’s from Font Awesome (sprout) — and it’s not working because they don’t include dimensions by default with their icons.

Our CSS for badge images uses width: 100%; capped by max-width but 100% of 0 is still 0.

I’m adding a little fix to Discourse that will avoid this problem.

If you update later today this should be fixed.