You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Move an SVG file without width and height attributes to e.g. /assets/images/logo.svg. Heres an example of such an SVG:
<svgviewBox="0 0 500 180"xmlns="http://www.w3.org/2000/svg">
<polylinepoints="0,40 40,40 40,80 80,80 80,120 120,120 120,160"style="fill:white;stroke:red;stroke-width:4" />
Sorry, your browser does not support inline SVG.
</svg>
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: