iodevs / iodevs/qr_code

Adding a `viewbox` attribute to the generated svg.

Open
#61 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Elixir
Stars
87
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hi, I've bumped into a problem integrating the svg into a view: resizing the item made it cut its content instead of scaling it.

To fix it, I added a viewbox, like this:

```

```

This way the svg resizes with its content scaling.

I don't know why this hasn't already been suggested, but it helps a lot when styling.

I might suggest a PR if you're interested :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.