Closed LukeKing71 closed 1 year ago
Hi! Yes, currently the module removes all width/height tags to strip svg of rigid sizes. Some icons have elements like <rect>
that have their own sizes etc, I will take this into account in newer versions of the module. Currently you can get around this by converting 'rects' to path, like this:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" fill="currentColor" viewBox="0 0 24 24">
<path transform="matrix(-1 0 0 1 15.5 11)" d="M1 0h10s1 0 1 1v0s0 1 -1 1h-10s-1 0 -1 -1v0s0 -1 1 -1"></path>
<path d="M13.631 11.693l-1.756-1.463a1.041 1.041 0 1 1 1.358-1.578l2.926 2.601a1 1 0 0 1 0 1.495l-2.926 2.6a1.041 1.041 0 1 1-1.358-1.578l1.756-1.463a.4.4 0 0 0 0-.615zM8 5v1a1 1 0 1 0 2 0 1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1 1 1 0 1 0-2 0v1a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-9a2 2 0 0 0-2 2z"></path>
</svg>
Icon is not showing correctly because width and height in is module deleting.