modulz/prototype-feedback

SVG vectors appear in canvas but not in preview

cdes opened this issue ยท 4 comments

cdes commented

Describe the bug
image
SVG vectors appear in canvas but not in preview

To Reproduce
Steps to reproduce the behavior:

  1. Copy any SVG vector
  2. Paste in Modulz
  3. Click Preview
  4. See error

Expected behavior
The vector should appear.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS 10.15.7 Catalina
  • Browser Chrome
  • Version 91.0.4472.77

Additional context

<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  preserveAspectRatio="none"
  color="#1B254A"
  style="boxSizing: border-box;height: 24px;verticalAlign: top;width: 24px;bottom: auto;left: auto;position: absolute;right: 20px;top: 48px;transform: none;"
>
  <path
    d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"
    fill="currentColor"
  />
</svg>

Investigating. Thanks for the thorough repro!

Salaam @cdes ๐Ÿ‘‹

This is now fixed and will be part of the next release.
Please keep the feedback coming and don't hesitate to reach out if you have any questions or suggestions.

The fix for this bug is live. thanks for reporting the issue ๐Ÿ™

cdes commented

It works, awesome!

image