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
SVG logos without width/height not displayed in masthead #3845
Comments
Edit: I have been getting mixed results with wheter it works with or without the masthead title. Please somebody try it out too |
This was referenced Aug 15, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Since this is a general issue with the theme, I won't be providing information such as operating system. Other details will be provided on request if needed.
The Problem
SVG images don't have to contain explicit width and height attributes. This makes the logo render at the size of 0 width and 0 height.
Expected behavior
My expectations are that the logo image's size in the masthead is displayed with an appropriate width and height.
Steps to reproduce the behavior
/assets/images/logo.svg
. Heres an example of such an SVG:logo: "/assets/images/logo.svg"
, in your _config.yml.If width and/or height attributes are given to the SVG, it displays correctly.
Possible Fixes
Here's what I think could fix this issue:
min-height
style.Let me know what you think is the best solution.
Best regards,
Silvio
The text was updated successfully, but these errors were encountered: