Skip to content

Adding a viewbox attribute to the generated svg. #61

@Bastes

Description

@Bastes

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:

<svg width="410" height="410" ... viewbox="0 0 410 410">...</svg>

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions